ubuntu 设定永久dns
2017-04-14 15:40
260 查看
通过修改:sudo vim /etc/resolvconf/resolv.conf.d/base(这个文件默认是空的)在里面插入:nameserver 8.8.8.8nameserver 8.8.4.4如果有多个DNS就一行一个修改好保存,然后执行sudo resolvconf -u再看/etc/resolv.conf,最下面就多了2行:cat /etc/resolv.conf# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTENnameserver 8.8.8.8nameserver 8.8.4.4可以看到我们的设置已经加上了,然后再ping一个域名,当时就可以解析了,无需重启
相关文章推荐
- ubuntu 设定永久dns
- ubuntu 设定永久dns
- ubuntu 设定永久dns
- ubuntu设置DNS永久生效
- Ubuntu中设置永久的DNS
- 在Ubuntu 14.04 64bit中永久添加DNS的方法
- ubuntu 12.04中永久添加dns的方法
- 在Ubuntu 14.04 64bit中永久添加DNS的方法
- ubuntu 永久设置静态ip和dns
- Ubuntu中设置永久的DNS
- Ubuntu配置DNS令其永久生效的方法
- 学习笔记:ubuntu永久修改DNS的两种方法
- ubuntu 永久设置dns信息
- 永久修改ubuntu DNS的方法
- ubuntu设置永久dns
- ubuntu 永久写入dns
- Ubuntu下修改为永久DNS的方法
- Ubuntu添加永久DNS配置
- Ubuntu添加永久DNS配置
- ubuntu永久dns设置