当我尝试使用Web浏览器ping或浏览我们在本地网络上托管的某些域名时,它不起作用。但是,dig和nslookup可以正确返回其详细信息。我需要做什么来解决这个问题?
我们本地网络上的DNS服务器和DHCP服务器在Windows客户端上可以正常工作。
$ ping ns1.domain.local
ping: unknown host ns1.domain.local
aaron@aaron-laptop:~
$ nslookup ns1.domain.local
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: ns1.domain.local
Address: 172.16.0.254
$ cat /etc/resolv.conf
# 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
nameserver 127.0.0.1
search domain.local
$ nm-tool
NetworkManager Tool
State: connected (global)
- Device: eth0 [Wired connection 1] -------------------------------------------
IPv4 Settings:
Address: 172.16.0.93
Prefix: 24 (255.255.255.0)
Gateway: 172.16.0.2
DNS: 172.16.0.254
</pre>
**Added additional info**
As per http://askubuntu.com/a/146310/10998
> For some reason avahi-daemon interferes with name resolver
<pre>
ping ns1
PING ns1.domain.local (172.16.0.254) 56(84) bytes of data.
64 bytes from ns1.domain.local (172.16.0.254): icmp_req=1 ttl=64 time=0.381 ms
files dns [NOTFOUND=return] mdns4
没有我做任何事情,但是第二个files mdns4_minimal [NOTFOUND=return] dns
却把我引向您的答案。