Red Hat Bugzilla – Bug 1471318
avahi .local domains are not being resolving in Fedora 26
Last modified: 2018-06-07 09:07:56 EDT
Description of problem:
After upgrade from Fedora 25 to 26 .local domains are not being resolving any more.
Problem solved by changing one line in /etc/nsswitch.conf
- hosts: files dns
+ hosts: files mdns4_minimal [NOTFOUND=return] dns
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. ping somehost.local
host not found
I am using network manager with dnsmasq extension.
Additional info: On my system "dnf reinstall nss-mdns" made the necessary change to /etc/nsswitch.conf.
Can this be closed?
(In reply to Adam Goode from comment #2)
> Can this be closed?
I can not check how it works in current version because I have no Fedora on my computers right now.
I have a strong recollection that comment #1 is correct. Feel free to re-open if problems persist.
Affects me in Fedora 28, reinstalling nss-mdns fixed it.
I just ran into this problem on a fresh F28 installation.
→ cat /etc/nsswitch.conf
hosts: files dns myhostname
→ dnf info nss-mdns
Name : nss-mdns
Version : 0.14.1
Release : 1.fc28
Arch : x86_64
Size : 136 k
Source : nss-mdns-0.14.1-1.fc28.src.rpm
Repo : @System
From repo : anaconda
→ sudo dnf reinstall nss-mdns
Fixed the issue, so I would say the problem indeed still persists.
If re-installing nss-mdns , it's likely only because of it's scriptlets:
# sed-fu to add mdns4_minimal to the hosts line of /etc/nsswitch.conf
if [ -f /etc/nsswitch.conf ] ; then
sed -i.bak '
s/\([[:blank:]]\+\)dns\>/\1mdns4_minimal [NOTFOUND=return] dns/g
which is essentially what linked bug #1577243 is about
The post is probably missing a requires on glibc already being installed. If you still have the install logs (usually in /root) you should see that nss-mdns gets installed before glibc.