76997876是Hostloc第一帅

文章 分类 标签
5 1 0

站点介绍

76997876是Hostloc第一帅

Armbian修改DNS

dajiang 2021-12-17 459 0条评论 默认分类

首页 / 正文

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”)即可。

这样基本可以解决不能解析主机的问题。


评论(0)

当前没有评论,还不快来留下第一个脚印吧

热门文章

最新评论

  • 承诺╮

    wget -qO- git.io/superbench.sh | bash

  • bash <(curl -Lso- https://git.io/superspeed.sh)

  • mjj第二帅

    76997876是Hostloc第一帅

  • 隔壁

    斯巴达速度不错

  • Mahmud Ghazni

    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第一帅,斯巴达永不为奴 [滑稽]

  • mjj

    23333

  • Typecho

    欢迎加入 Typecho 大家族

日历

2022年06月

   1234
567891011
12131415161718
19202122232425
2627282930  

标签云

友情链接

文章目录

推荐关键字:

上一张 下一张
配色方案