dns
ubuntu的dns服务器设置resolv.conf
一起一直修改/etc/resolv.conf中加入
nameserver 8.8.8.8
现在更新却不行了,自定义的/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 OVERWRITTEN
搜索了一下解决办法,在/etc/resolvconf/resolv.conf.d/base里添加
$sudo vi /etc/resolvconf/resolv.conf.d/base nameserver 8.8.8.8
之后,每次重启之后/etc/resolv.conf中就回自动生成自定义的dns服务器信息了