I just spun up a new Fedora 43 Server and I can’t seem to get any of my local machines to recognize it by its hostname – except for the first 60 seconds or so after I restart systemd-resolved. Works great. Then quits. The status of systemd-resolved does NOT change.
This is my /etc/systemd/resolved.conf file: [Resolve] LLMNR=no MulticastDNS=yes
Why do I have LLMNR disabled? I read somewhere that if you have Apple devices (I do) you don’t want to enable it. However, even with it enabled, the same problem exists, so that’s not the issue.
Not sure if this is related but the new server cannot ping any of the local hosts, no matter what. If I type ping mydesktopmachine.local I always get ping: mydesktopmachine.local: Temporary failure in name resolution But on a different computer I can type that command and get a return, no problem. What’s up with that “temporary” nonsense, too? Like, it expects that to change soon?
Global
Protocols: -LLMNR +mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: stub
Link 2 (enp2s0)
Current Scopes: DNS mDNS/IPv4 mDNS/IPv6
Protocols: +DefaultRoute -LLMNR +mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 1.0.0.1
DNS Servers: 1.0.0.1 192.168.1.1
Default Route: yes
So, it seems to be enabled there… What else should I check?
Run journalctl -k to list the log entries, which are mixed in with the other kernel log lines.
Also, the avahi-daemon.service and avahi-daemon.socket may interfere with the mdns function of systemd-resolved, so it is best to disable those systemd units.
Never mind – figured it out. firewall-cmd --set-log-denied=off
Anyway – I tried disabling the avahi-daemon and avahi-daemon.socket, then I restarted the systemd-resolved service, and yet again, mDNS lasted about 60 seconds before failing.
This is becoming quite annoying. Why can’t Fedora just have this working out of the box like literally EVERY OTHER DISTRO EVER?!
Never mind… I did the firewall-cmd --permanent --add-service=mdns --zone=FedoraServer thing and then restarted the systemd-resolved service. Same thing as before – 60 seconds of mDNS and then nothing.
Some of above commands might help to find, what works and what does not. However, it might be even hardware problem of your access point or your router. Are you trying it exclusively on wired ethernet or is wireless connection also used? If yes, do you know its vendor and type?
oh, so you have got it working and stable in the end?
I prefer especially for remote machines trying the change first in runtime, then verify it has changed and you did not cut yourself out. Then save the change.
sudo firewall-cmd --add-service=mdns --zone=FedoraServer
# firewall change is applied, but not yet permanent
# now verify it has changed positively and you connection still works.
# if yes, continue. If not, ask somebody to reboot you machine :)
sudo firewall-cmd --runtime-to-permanent
# now it will become active even after the reboot.
This is much safer way to reconfigure network services, where you access it over the network itself. On local devices you can use local console.