我正试图在使用“when -u”运行时,使when在/etc/surv.conf中添加两个额外的名称服务器。我的/etc/resolvconf.conf文件如下:
# Configuration for resolvconf(8)
# See resolvconf.conf(5) for details
resolv_conf=/etc/resolv.conf
# If you run a local name server, you should uncomment the below line and
# configure your subscribers configuration files below.
name_servers=1.1.1.1 1.0.0.1
# Mirror the Debian package defaults for the below resolvers
# so that resolvconf integrates seemlessly.
dnsmasq_resolv=/var/run/dnsmasq/resolv.conf
pdnsd_conf=/etc/pdnsd.conf
unbound_conf=/var/cache/unbound/resolvconf_resolvers.conf当我运行命令“when -u”时,问题就出现了,这是我得到的输出:
/sbin/resolvconf: 7: /etc/resolvconf.conf: 1.0.0.1: not found
/sbin/resolvconf: 7: /etc/resolvconf.conf: 1.0.0.1: not found
/sbin/resolvconf: 7: /etc/resolvconf.conf: 1.0.0.1: not found
/sbin/resolvconf: 7: /etc/resolvconf.conf: 1.0.0.1: not found
/sbin/resolvconf: 7: /etc/resolvconf.conf: 1.0.0.1: not found
/sbin/resolvconf: 7: /etc/resolvconf.conf: 1.0.0.1: not found如果我只在name_servers行中指定一个DNS,它就能正常工作。我还试图用"“包装DNS定义,但它仍然不接受它们。我在手册中找不到关于正确语法的任何东西。
发布于 2018-05-03 04:55:11
/sbin/resolvconf实际上是一个shell脚本,配置文件只是源脚本,所以您需要的语法与shell脚本相同:
name_servers="1.1.1.1 1.0.0.1"https://unix.stackexchange.com/questions/441440
复制相似问题