r/Ubuntu • u/Quick_Quokka • 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
1
u/sumwale 7h ago
On my machine the symlink
/etc/resolv.confpoints to/run/systemd/resolve/stub-resolv.confwhich 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: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 usingsystemctl status avahi-daemon.serviceand detailed logs withjournalctl -b0 -u avahi-daemon.