我配置了NetworkManager,以便它维护从/etc/resolv.conf到其目录- /var/run/NetworkManager/resolv.conf中文件的符号链接。
ls -l /etc/resolv.conf
... /etc/resolv.conf -> /var/run/NetworkManager/resolv.confResolvconf提供配置DNS的调度:
resolvconf -u
/etc/resolvconf/update.d/libc: Warning: /etc/resolv.conf is not a symbolic link to /run/resolvconf/resolv.conf它与NetworkManager的设置相矛盾。如何在没有冲突的情况下消除此警告,同时设置NetworkManager和解析器?
发布于 2017-01-17 17:37:44
首先,这是一个警告。
下面是解析手册页对您的问题的处理方法:
Normally the resolvconf program is run only by network interface configuration programs
such as ifup(8), ifdown, NetworkManager(8), dhclient(8), and pppd(8); and by local
nameservers such as dnsmasq(8). These programs obtain nameserver information from some
source and push it to resolvconf.
...
To make the resolver use this dynamically generated resolver configuration file the
administrator should ensure that /etc/resolv.conf is a symbolic link to
/run/resolvconf/resolv.conf. This link is normally created on installation of the
resolvconf package. The link is never modified by the resolvconf program itself. If you
find that /etc/resolv.conf is not being updated, please check to make sure that the link
is intact.因此,为了消除警告,您需要做的是重新创建符号链接,您有两个选项:
/run/resolvconf/resolv.conf,而不是/var/run/NetworkManager/resolv.conf。https://askubuntu.com/questions/872614
复制相似问题