Code: Select all
resolvectl query server.local
I have installed Debian 10.1 on a laptop and I am trying to use .local to access shared facilities on my network. Initially I installed avahi for this but I found that sometimes a local address would be resolved, and sometimes it would not. Looking around I found that systemd-resolved now supports mDNS and there was a suggestion that systemd and avahi might conflict. This is my first go at Debian 10, all my other systems are Debian 9, and it looks as though this mDNS feature is new in 10. I have not had this problem under 9. Since I don't need to advertise services from my laptop I decided to try the systemd-resolved feature.
This requires these steps:
1. Disable the avahi daemon. I did that and actually uninstalled the daemon.
2. Make sure that resolved.conf enables mDNS. Interestingly, this comes as default, which it didn't under 9.
3. Make sure /etc/resolv.conf is a symlink to one of a number of possible locations. I have it in /etc/resolvconf/run/resolv.conf
4. Make sure that mDNS is enabled in for each relevant connection.
It's this last one that seems to cause the problem. I have installed NetworkManager and configured it so that all connections should have mdns=2 by default.
I have a number of issues here:
* I expect mdns=2 to enlist support for both resolution of names and response to mDNS requests from other systems. The documentation is not clear and I got this vale from ArchWiki.
* The man page for nm-settings tells me that I need to install a NetworkManager plugin that supports mDNS, saying "One such plugin is dns-systemd-resolved". I have tried adding a plugin to NetworkManager, with various spellings, and none are recognised. I have no idea how to find NetwokManager plugins other than using the Debian package index and this only gives me a number of VPN related entries. The ArchWiki entry makes no mention of plugins.
* After making all the changes I can I run
Code: Select all
resolvectl mdns
Can anyone confirm the mdns=2 setting?
Can anyone help find a NetworkManager plugin such as dns-systemd-resolved?
Has anyone actually got this working?