我正在配置 Fedora 21 服务器,并根据以下 LINK 设置静态 IP 和 DNS
我正在使用
编辑文件vi /etc/resolv.conf
然后将我的 dns 就像那里提到的那样。 一切都工作得很好。 但在我重新启动后,该文件被其原始内容覆盖:
# No nameservers found; try putting DNS servers into your
# ifcfg files in /etc/sysconfig/network-scripts like so:
#
# DNS1=xxx.xxx.xxx.xxx
# DNS2=xxx.xxx.xxx.xxx
# DOMAIN=lab.foo.com bar.foo.com
发生了什么事以及如何阻止这种情况发生?
最佳答案
NetworkManager 正在覆盖它。您可以将其关闭并进入“手动”模式,那里有一些教程:http://xmodulo.com/disable-network-manager-linux.html
关于linux - resolv.conf 在重新启动时被重写,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28860655/