Ordering of mdns4_minimal and resolve in /etc/nsswitch.conf causes mDNS lookups to fail -- breaks network printing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nss-mdns (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Yakkety |
Triaged
|
Medium
|
Unassigned | ||
systemd (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Yakkety |
Invalid
|
Undecided
|
Unassigned |
Bug Description
(See also libnss-
# fresh install of yakkety
mtearle@
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.10
Release: 16.10
Codename: yakkety
# package details
mtearle@
libnss-resolve:
Installed: 231-9ubuntu1
Candidate: 231-9ubuntu1
Version table:
*** 231-9ubuntu1 500
500 http://
100 /var/lib/
231-9git1 500
500 http://
mtearle@
systemd:
Installed: 231-9ubuntu1
Candidate: 231-9ubuntu1
Version table:
*** 231-9ubuntu1 500
500 http://
100 /var/lib/
231-9git1 500
500 http://
# attempt to ping VM elsewhere on network with mDNS hostname
mtearle@
ping: bazzavan.local: Name or service not known
# can find both ipv4 and ipv6 addresses for the host
mtearle@
bazzavan.local fe80::a00:
mtearle@
bazzavan.local 172.16.44.48
# can ping it
mtearle@
PING 172.16.44.48 (172.16.44.48) 56(84) bytes of data.
64 bytes from 172.16.44.48: icmp_seq=1 ttl=64 time=0.265 ms
--- 172.16.44.48 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.265/0.
# original ordering
mtearle@
hosts: files resolve [!UNAVAIL=return] mdns4_minimal [NOTFOUND=return] dns
# go away and edit /etc/nsswitch.conf
# change ordering of resolve and mdns4_minimal
mtearle@
hosts: files mdns4_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns
# check mdns lookups now work, and it now pings
mtearle@
PING bazzavan.local (172.16.44.48) 56(84) bytes of data.
64 bytes from 172.16.44.48 (172.16.44.48): icmp_seq=1 ttl=64 time=0.161 ms
--- bazzavan.local ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.161/0.
# check libnss-resolve is still doing its thing
mtearle@
PING localhost.
64 bytes from localhost (::1): icmp_seq=1 ttl=64 time=0.016 ms
--- localhost.
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.016/0.
tags: | added: resolve |
summary: |
Ordering of mdns4_minimal and resolve in /etc/nsswitch.conf causes mDNS - lookups to fail + lookups to fail -- breaks network printing |
tags: | added: yakkety |
Status changed to 'Confirmed' because the bug affects multiple users.