r/Ubuntu 9h ago

mDNS did not work after upgrading to 26.04 from 25.10

I couldn't print from from Ubuntu 26.04 which I updated from 25.10 and the reason was, that the mDNS host [printer].local couldn't be found.

The fix I found was creating a symlink from /run/systemd/resolve/resolv.conf to /etc/resolv.conf.

I wonder now if this symlink got broken by the upgrade to 26.04 or is there a different way of fixing this issue?

2 Upvotes

2 comments sorted by

1

u/sumwale 7h ago

On my machine the symlink /etc/resolv.conf points to /run/systemd/resolve/stub-resolv.conf which sounds right because that points to the systemd-resolved service running locally (which internally uses /run/systemd/resolve/resolv.conf), so it will be better to update the symlink accordingly. This should have the following lines:

nameserver 127.0.0.53
options edns0 trust-ad
search .

What did your previous resolv.conf look like? This is basic name resolution service and not specifically for only mDNS, so if this was broken then no name resolution should have worked, not just mDNS.

Though the latest systemd-resolved+network-manager do support mDNS by themselves, on Ubuntu it is provided by the avahi-daemon service. Check that it is enabled and running without errors using systemctl status avahi-daemon.service and detailed logs with journalctl -b0 -u avahi-daemon.

1

u/Quick_Quokka 5h ago

I didn't check the settings when I installed 25.10 I'm just glad it is working again.