Dnsmasq permission denied creating listening socket and no web interface


After installing pihole, the DNS service fails to start. After some poking around I found:

$ dnsmasq
dnsmasq: failed to create listening socket for port 53: Permission denied

and so ran

$ sudo dnsmasq

which ran fine, and now it appears pihole is blocking as intended. However, upon reboot it requires this intervention again, which I’d rather avoid. I attach a debug token below.

Once I have pihole running (complete with DNS service) I cannot access the web interface. I first got some write issues so did:

$ sudo chown pi:pi /var/log/pihole-FTL.log

In the tail of /var/log/pihole-FTL.log whenever I try to start it I get a bunch of Error on binding on port xxxx at the end and finall Error listening on any port.

Previously I could access the web interface but the statistics would just say Lost connection to API, now (having run pihole -r to retry things before posting this) I cannot even access the local page.

Debug token when DNS service not running: bfq2470e82
Debug token after sudo dnsmasq run: osshxttiva

Let me know if anything else is needed and thanks.


I would first upgrade to Jessie as Wheezy isn’t fully supported anymore.

In addition, both of your debug tokens show that name resolution is not working.

So for now, I’d first suggesting making the upgrade and installing any package updates… You can also post the output of lsof -i -P -n, which would be helpful.