Local DNS - LeandroTheDev/arch_linux GitHub Wiki
Local DNS resolves
For example instead of: 192.168.15.255 you use: mydevice, good if your device changes the local address
- sudo systemctl enable --now systemd-resolved
- sudo ln -sf ../run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
- sudo vim /etc/NetworkManager/conf.d/mdns.conf
[connection]
connection.mdns=2
- sudo systemctl restart NetworkManager