debian下重启后resolv.conf为空的解决方法.

由于安装了resolvconf包,开机自动覆盖resolv.conf.

找到 "/etc/resolvconf/resolv.conf.d/":
base - 空
head
original - 空
tail - 空
vim /etc/resolvconf/resolv.conf.d/head

# OpenDNS
nameserver 219.141.136.10
nameserver 219.150.32.132

发表评论

电子邮件地址不会被公开。 必填项已用*标注