How to solve this problem? There is no software using port 53. And my os is Raspbian
root@raspberrypi:/etc/init.d# ./pihole-FTL start
Not running
dnsmasq: failed to create listening socket for port 53: Permission denied
And I save my Upstream DNS Servers settings, The pihole-FTL will be offline, I must start it manually.
In V4.0, dnsmasq is embedded in pihole-FTL, and dnsmasq no longer runs as a separate process. The debug log will show dnsmasq as either failed or inactive. Process pihole-FTL should be shown running on port 53.
Please generate a debug log, upload it and post the token.
If you are unable to upload the debug log, then change the Pi nameserver as follows and then generate and upload the debug log.
sudo nano `/etc/resolv.conf`
edit `127.0.0.1` to `9.9.9.9` or your preferred third party DNS service
save and exit
Your debug log shows that pihole-FTL is running on port 53:
*** [ DIAGNOSING ]: Ports in use
...
[*:80] is in use by lighttpd
[*:80] is in use by lighttpd
[*:80] is in use by lighttpd
[*:80] is in use by lighttpd
[*:80] is in use by lighttpd
[*:80] is in use by lighttpd
...
[*:80] is in use by lighttpd
[*:53] is in use by pihole-FTL
[*:53] is in use by pihole-FTL
[127.0.0.1:4711] is in use by pihole-FTL
[[::1]:4711] is in use by pihole-FTL
[*:80] is in use by lighttpd
[*:80] is in use by lighttpd
[*:80] is in use by lighttpd
[*:80] is in use by lighttpd
and shows that Pi-Hole is properly resolving DNS queries:
*** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
[✓] ad.doubleclick.net.28751.9225.302br.net is 192.168.10.30
0.0.0.0 via localhost (127.0.0.1)
[✓] ad.doubleclick.net.28751.9225.302br.net is 192.168.10.30 via Pi-hole (192.168.10.30)
[✓] doubleclick.com is 216.58.200.238 via a remote, public DNS server (8.8.8.8)
Let's double check the processes running on ports used by Pi-Hole. Please post the output of this command run from the Pi terminal:
FTL will start when the system boots, since it's a necessary system function. If you want to only manually start pihole-FTL which is highly unadvised and not a supported runtime, then you need to stop pihole-FTL from starting on boot. Do not run ./pihole-FTL from /etc/init.d or from it's location in /usr/bin. Run sudo service pihole-FTL start or sudo systemctl start pihole-FTL only. The init scripts handle the creation of many required files and nodes that manually starting the process will not create.
Still output this information
root@localhost:/home/user# sudo /etc/init.d/pihole-FTL start
Not running
dnsmasq: failed to create listening socket for port 53: Permission denied
Is the Debian OS is not compatible with pi-hole? I used pihole in Ubuntu with no errors before.
Permission is denied because pihole-FTL is not being invoked correctly. I have given you the proper procedure a few times now. Do not start the pihole-FTL with any command including the directory /etc/init.d.
Raspbian Stretch works just fine if you follow directions.
After save this settings, it will execute "pihole restartdns" command, and then "pihole-FTL" will not start. So I must start it by manually.
And do "sudo service pihole-FTL start" or "sudo /etc/init.d/pihole-FTL start" will not work. It will show the information below:
dnsmasq: failed to create listening socket for port 53: Permission denied
"journalctl -xe" also shows that information above.