我刚安装了Ubuntu 16.10,然后将我先前的主目录的备份从kubuntu 16.04同步到新安装。一切正常,但是尽管反复尝试,但我仍无法解析本地地址。
所有网络似乎都可以正常工作。互联网浏览,外部地址的DNS查找,ssh等都很棒。在本地,我可以通过ssh使用其地址而不是其名称访问计算机。在nautilus / samba中一切正常,这意味着WINS可以工作。出现的唯一问题是局域网DNS。我已经安装并运行了avahi-daemon,它是Ubuntu附带的。
我提供了一些故障排除方法,使用<< >>可以缩短冗余部分或正确工作的部分。
$ nmcli g
STATE CONNECTIVITY WIFI-HW WIFI WWAN-HW WWAN
connected full enabled enabled enabled enabled
$ ping tendril8 << or tendril8.local >>
ping: tendril8: Name or service not known
$ ping gateway
PING gateway (192.168.1.1) 56(84) bytes of data.
64 bytes from gateway (192.168.1.1): icmp_seq=1 ttl=64 time=4.16 ms
$ ping askubuntu.com
PING askubuntu.com (151.101.129.69) 56(84) bytes of data.
64 bytes from 151.101.129.69 (151.101.129.69): icmp_seq=1 ttl=49 time=43.0 ms
$ nslookup askubuntu.com
Server: 127.0.1.1
Address: 127.0.0.1#53
<< followed by several IP addresses >>
$ nslookup tendril8 << or tendril8.local >>
Server: 127.0.1.1
Address: 127.0.0.1#53
** server can't find tendril8: NXDOMAIN
$ 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.1.1
$ ls -la /etc/resolv.conf
lrwxrwxrwx 1 root root 29 Oct 15 19:30 /etc/resolv.conf -> ../run/resolvconf/resolv.conf
$ cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: compat
group: compat
shadow: compat
gshadow: files
hosts: files resolve [!UNAVAIL=return] mdns4_minimal dns [NOTFOUND=return]
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
注意:在Ubuntu切换到16.10中已解决的Ubuntu之前,我花了大量时间研究“较旧的”解决方案。他们没有为我工作,我不认为这是与先前使用Ubuntu配置的类似问题重复的问题。