resolvconf:错误:/etc/resolv.conf必须是符号链接错误和解决方案
时间:2020-01-09 10:45:38 来源:igfitidea点击:
当我尝试使用service bind9 restart或者service bind9 start命令在Ubuntu Linux下重新启动BIND 9服务器时,出现以下错误:resolvconf: Error: /etc/resolv.conf must be a symlink``resolvconf:错误:/etc/resolv.conf必须是一个符号链接。
我该如何解决这个问题?
您可以通过执行以下命令来解决此错误(打开终端并以root用户身份登录):
$ sudo -i # cd /etc # rm resolv.conf # ln -s /etc/resolvconf/run/resolv.conf . # service bind9 restart
Postfix错误
如果收到如下错误(后缀错误以及以上错误):
* Stopping domain name service... bind9 [ OK ] * Starting domain name service... bind9 /usr/sbin/postconf: fatal: open /etc/postfix/main.cf: No such file or directory cp: `/etc/resolv.conf' and `/etc/resolv.conf' are the same file run-parts: /etc/resolvconf/update-libc.d/postfix exited with return code 1 run-parts: /etc/resolvconf/update.d/libc exited with return code 1
执行以下命令:
$ sudo -i # cd /etc # mkdir postfix # touch postfix/main.cf # rm resolv.conf # ln -s /etc/resolvconf/run/resolv.conf . # service bind9 restart