Hello, I’m new to Fedora (but not to Linux in general) and in general I like it a lot. This one problem has me stumped though. mDNS name hostname resolution isn’t working. Avahi is able to resolve the hostname when I use
getent hosts doesn’t resolve it. For example, with an mDNS-enabled printer:
[mtrescott@R8501300 ~]$ avahi-resolve-host-name xpress-c1860fw.local xpress-c1860fw.local 192.168.1.64 [mtrescott@R8501300 ~]$ getent hosts xpress-c1860fw.local [mtrescott@R8501300 ~]$ echo $? 2
I’m not sure what’s wrong here since Avahi seems to be working fine on its own. Here’s what I’ve tried:
- Checking firewall configuration: mDNS is allowed (and anyway, Avahi works on its own)
- Adding 127.0.0.1 to NetworkManager’s additional DNS servers for my connection config. (this adds a
nameserver 127.0.0.1line to
- Adding an
/etc/mdns.allowfile with the default settings to allow .local domains.
- Switching Avahi to use .alocal instead of .local in
/etc/avahi/avahi-daemon.confin case the router’s DNS server handles the .local TLD already.
I don’t think my configuration is out of the ordinary anywhere else. I installed Fedora using the minimal install media and then gradually installed the packages that I want/need. Here’s some configuration lines that might be relevent:
hosts line from
hosts: files mdns4_minimal [NOTFOUND=return] dns myhostname
# Generated by NetworkManager search attlocal.net nameserver 192.168.1.254 nameserver 127.0.0.1 nameserver 2600:1702:5a0:82f0::1
If anyone can help me on this, thank you in advance!