If you want to host a DNS server in a Linux environment (e.g. Ubuntu or raspbian), port 53/udp might be occupied by one of the services below. Use. ss or lsof to check the running service.
-
Edit the conf file
sudo vim /etc/systemd/resolved.conf
-
Uncomment the line
DNSStubListenerand set the value tono, like so:DNSStubListener=no -
Restart the service, or reboot if you're lazy
sudo service systemd-resolved restart
- Stop the service
sudo systemctl stop dnsmasq.service
- Disable autorun
sudo systemctl disable dnsmasq.service
🔗 https://discourse.pi-hole.net/t/update-what-to-do-if-port-53-is-already-in-use/52033