nsswitch.conf configuration doesn't work with mdns hosts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
On a fresh Ubuntu 16.10 (yakkety) install, resolution of mDNS hosts doesn't work anymore (it used to in xenial)
I can resolve names with avahi-resolve but ssh,ping,etc. fail to resolve.
After some digging I found out that what's causing it is the "resolve" option in /etc/nsswitch.conf:
hosts: files resolve [!UNAVAIL=return] mdns4_minimal [NOTFOUND=return] dns
Changing it to
hosts: files mdns4_minimal [NOTFOUND=return] dns
(as it was on xenial) makes mDNS work again.
ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: libnss-resolve 231-9ubuntu2
ProcVersionSign
Uname: Linux 4.8.0-30-generic x86_64
ApportVersion: 2.20.3-0ubuntu8
Architecture: amd64
Date: Fri Dec 16 15:16:38 2016
InstallationDate: Installed on 2016-10-22 (54 days ago)
InstallationMedia: Ubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.2)
SourcePackage: systemd
UpgradeStatus: No upgrade log present (probably fresh install)
Thanks, edit of nsswitch.conf worked for me. Also marking as affecting zesty.