I am trying to set up a DNS server on a Raspberry pi running Raspbian. I have been following tutorials online on how to setup a DNS server, and I found this one that was very easy to follow.
I followed the directions and installed dnsmasq via the link listed on this site
curl "https://raw.github.com/stephendotexe/raspberrypi/master/roles/dnsmasq_server" | sudo sh,
but when it attempted to start dnsmasq, it gave me the error;
dnsmasq: failed to create listening socket for port 53: Address already in use failed!
I did some research and I came across this post on the Askubuntu site.
Again, I followed the directions and it appeared that dnsmasq interferes with Network Manager, so I ran the following commands, as directed by the post.
sudo apt-get remove dnsmasq-base sudo apt-get install dnsmasq sudo apt-get install network-manager network-manager-gnome
Again, this didn't solve my problem. I tried to use
lsof to figure out what is using port 53, so I installed it with
sudo apt-get install lsof and ran the command;
sudo lsof -Pn +M | grep ':53 (LISTEN)
I got this output
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME named 1955 bind 20u IPv4 2467 0t0 TCP 127.0.0.1:53 (LISTEN) named 1955 bind 21u IPv4 2469 0t0 TCP 192.168.0.102:53 (LISTEN) named 1955 bind 512u IPv4 2466 0t0 UDP 127.0.0.1:53 named 1955 bind 513u IPv4 2468 0t0 UDP 192.168.0.102:53
I assume this means I need to uninstall BIND or at least make it not execute on startup.