我试图使用几个名称服务器,每个人都可以解决一些主机,其他人不。
这是我的resolv.conf:
options timeout:1 # This one is used to resolve hostnames for servers internal to my company nameserver 127.0.1.1 And this one is used to resolve hostnames for docker hosts I have on my machine nameserver 172.17.42.1 # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN search lmc.universcine.com
在使用此订单时,我无法parsingdocker主机。 当我把泊坞窗名称服务器声明第一次,我可以。 我该如何解决两组主机名?
这不是如何工作。 如果您从DNS服务器得到否定答复,系统将不会询问第二台服务器,但只是假定该名称不存在。
你将不得不configuration你的本地名称服务器来parsing你的本地名字,然后recursion/转发所有的非本地域名,并且只能在你的resolv.conf使用这个本地域名服务器。