Solution for Deepin DNS resolution error
When I change a wifi or reboot the machine, it will occur DNS resolution error result in connecting to the Network failed. I have tried to change /etc/resolv.conf
file,but it was useless. The reason why is that the NetworkManager will change it and override it automatically which makes me crazy.
Solution
sudo vim /etc/resolv.conf
Change the DNS server you want.
After save and quit, you also need to run this command to make sure that it can't be changed.sudo chattr +i /etc/resolv.conf
每次切換wifi,重啟 都會出現DNS解析問題。通過手動修改/etc/resolv.conf 中的nameserver 沒用,NetWorkManager會重新生成該檔案並覆蓋它。這是最他媽賣批騷的。
解決辦法
sudo vim /etc/resolv.conf
在裡面新增要改的DNS伺服器
修改完後加上 sudo chattr +i /etc/resolv.conf 這條命令
相關文章
- deepin定製deepin-terminal
- 寶塔:續簽SSL證書報錯Verification failed, domain name resolution error or verification URL cannot be accessed!AIError
- Deepin 2014.3
- [virtualbox] temporary failure in name resolutionAI
- 2021 New Year‘s Resolution
- Deepin Qt InstallQT
- deepin Nvidia驅動安裝及deepin遊玩steam
- [kubernetes]Error from server (BadRequest):container install-cni is not valid for pod kube-dnsErrorServerAIDNS
- Deepin使用筆記筆記
- Advent Of Code 2022 Solution
- sp4487-solution
- solution-uva1594
- Linux Deepin 12.12.1釋出Linux
- 手機投影到deepin
- deepin-terminal改造之路
- Linux--deepin--1--自定義軟體加入到deepin啟動器中Linux
- Educational Codeforces Round 172 Solution
- luogu_P3373 Solution
- UOS/deepin蜂鳴聲音
- rust-quiz:005-trait-resolution-hrtb.rsRustUIAI
- TypeScript 裡的 module 解析過程 - Module ResolutionTypeScript
- CF2018E2 Solution
- Chapter 8 The Simplest Plug-in SolutionAPT
- 「Ubuntu使用」安裝DEEPIN-WEIXINUbuntu
- deepin20.9控制中心改造
- deepin-terminal改造風雲再起
- Deepin 15 搭建 LNMP 環境 + swooleLNMP
- DNS劫持 DNS汙染 介紹、dns 劫持 汙染DNS
- 如何用double hashing解決collision resolution問題
- DNS劫持和DNS汙染DNS
- Solution - Codeforces 1957E Carousel of Combinations
- Solution - Codeforces 1190C Tokitsukaze and Duel
- Solution - Codeforces 796E Exam Cheating
- Jenkins restriction as of credentials and user group --- Folder solutionJenkinsREST
- Solution - Codeforces 622E Ants in Leaves
- 【題解】Solution Set - 「藍」題板刷
- Solution - Atcoder ARC099E Independence
- 域滲透——Local Administrator Password Solution
- Solution Set - 《賞竹而格之》