-
Notifications
You must be signed in to change notification settings - Fork 0
Local DNS
Lean's edited this page May 1, 2026
·
5 revisions
For example instead of: 192.168.15.255 you use: mydevice, good if your device changes the local address
- sudo pacman -S avahi nss-mdns
- vim /etc/nsswitch.conf
# Name Service Switch configuration file.
# See nsswitch.conf(5) for details.
passwd: files systemd
group: files [SUCCESS=merge]
systemd shadow: files systemd
gshadow: files systemd
publickey: files
# EDIT THIS
hosts: mymachines resolve [!UNAVAIL=return] files myhostname dns
# TO
hosts: files mdns_minimal [NOTFOUND=return] dns myhostname
networks: files
protocols: files
services: files
ethers: files
rpc: files
netgroup: files