Armbian在换源后(换源参考这里)执行apt update或进行其他需要联网的操作时,有时会出现“Could not resolve host: xxx“即“无法解析主机”这样的问题。这一般是由于DNS设置错误,只需要修改一下DNS即可。命令如下:
nano /etc/resolv.conf 如果没有安装nano,则用: vi /etc/resolv.conf
显示如下:
把nameserver后面的IP地址换成你的路由器地址,或者改成常用的几个DNS:
DNSPod(腾讯)DNS: 119.29.29.29 百度DNS: 180.76.76.76 阿里DNS: 223.5.5.5 / 223.6.6.6 114 DNS: 114.114.114.114 Google DNS: 8.8.8.8
修改完成,然后保存退出(nano:“Ctrl+X”; vim:先“Esc”然后“:wq”)即可。
这样基本可以解决不能解析主机的问题。
版权属于: 76997876是Hostloc第一帅
本文链接: https://www.e7i.cn/6.html
本文最后更新于2021年12月17日 ,已超过191天没有更新,若内容或图片失效,请留言反馈。
本文允许转载,但请在转载时请以超链接或其它形式标明文章出处
bash <(curl -Lso- https://git.io/superspeed.sh)
76997876是Hostloc第一帅
斯巴达速度不错
Hey, I'm Ghazni. Recently your website caught my attention while analyzing newly registered domain name list. After entering the website, It seems that your website is brand new or not complete yet. So I thought I should try to contact you by leaving a comment on your website. Because as a Freelancer, I provide WordPress-related services like: . 1) Website Design & Development 2) Theme Setup & Customization 3) Full E-commerce Website Setup 4) Speed Optimization 5) On-Page SEO Setup 6) Malware Removal 7) Landign Page Design 8) WordPress Virtual Assistant . I provide all kinds of premium tools like Divi, Astra, Elementor, Yoast and WooCommerce related premium themes and plugins to my clients absolutely free. Usually I bought those tools from official developers with unlimited license. I can guarantee that the Plugins or Themes weren’t nulled or cracked by third party. These are completely clean and original files. The main purpose of this is to ensure that clients do not have to spend more money separately for different kind of premium tools. . If you want to know more details about pricing, please contact me via email or whatsapp. . You can also check my protfolio website:- https://ghazni.me . Best regards, Mahmud Ghazni Web Design & Developer WhatsApp: +8801322311024 Email: mahmud.ghazni@yahoo.com
我承认你是Hostloc第一帅,斯巴达永不为奴
23333
欢迎加入 Typecho 大家族