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 這條命令
相關文章
- OUI Error Messages and Solution Reference List-757964.1UIError
- Redhat 5.8 作業系統上DNS詳細配置(DNS resolution for SCAN VIPs)Redhat作業系統DNS
- Temporary failure in name resolution - DNS引發的問題和思考AIDNS
- 測試dns時報Error: Dynamic update is not enabledDNSError
- Object Name Resolution (248)Object
- sp4487-solution
- Deepin Qt InstallQT
- Resolution of Schema Object Dependencies (241)Object
- solution-uva1594
- BI Solution Architect /Principal,Sr. Solution Architect - 高階DBA 職位
- Discuz雲平臺站點資訊同步失敗,An unknown error occurred. May be DNS Error.ErrorDNS
- Chapter 8 The Simplest Plug-in SolutionAPT
- Linux--deepin--1--自定義軟體加入到deepin啟動器中Linux
- 2021 New Year‘s Resolution
- Microsoft Application Architecture Solution SummaryROSAPP
- win10怎麼禁用聯想solution center win10禁用聯想solution center如何設定Win10
- Deepin 15 搭建 LNMP 環境 + swooleLNMP
- 「Ubuntu使用」安裝DEEPIN-WEIXINUbuntu
- SAP IoT Seeks Better Parking with New Solution
- High-Resolution Mandelbrot in Obfuscated PythonPython
- window+deepin雙系統安裝
- Linux Deepin 12.12.1釋出Linux
- deepin20.9控制中心改造
- 域滲透——Local Administrator Password Solution
- TypeScript 裡的 module 解析過程 - Module ResolutionTypeScript
- Merge two videos into a large resolution videoIDE
- Waiting for clusterware split-brain resolutionAI
- DNS劫持 DNS汙染 介紹、dns 劫持 汙染DNS
- DNS劫持和DNS汙染DNS
- DNS.com和DNS盾免費DNS解析、DNSPOD阿里公共DNS等DNS阿里
- Deepin Linux如何安裝Terminus終端Linux
- Deepin Linux 在 Wine 中執行微信Linux
- Java及JDK在deepin下的安裝JavaJDK
- deepin系統安裝php8教程。PHP
- Lintcode539 Move Zeroes solution 題解
- rust-quiz:005-trait-resolution-hrtb.rsRustUIAI
- Lintcode22 Flatten List solution 題解
- Lintcode387 The Smallest Difference solution 題解