Expected Behaviour:
Pihole working as dns server
Actual Behaviour:
Devices cannot access internet through Pihole
Debug Token:
19780xehwj
I am having trouble getting pihole to work. The installation has been anything but "easy."
The steps I have had to take to get the point I am at are as follows:
-
I installed pihole using the curl link without a hitch. Used the default settings including the static IP address that my router gives my pi. This killed internet to my pi and obviously any device that used it as a dns.
-
To attempt to fix the internet I was able to edit /etc/network/interfaces to contain the static ip address of the pi that the router sets. I am not sure if or why this is neccesary as the router gives it a static ip but it no contains the following:
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 8.8.8.8 8.8.4.4
- With the internet not working and more googling I discovered if I edited /etc/resolv.conf which contains "nameserver 127.0.0.1" to contain:
nameserver 8.8.8.8
I could then connect to the internet on the pi.
- After restarting the device the resolv.conf got overwritten (which is apparently common) so after trying many other things the solution I found was to edit /etc/dnsmasq.conf and add the dns servers there, it now contains:
server=8.8.8.8
server=8.8.4.4
-
With the internet working through a restart robustly, I now attempted to figure out why devices connected to the pihole did not connect to the internet. When I ran the admin page of the pihole I noticed that had red dot next to the dns service. After more googling I found out that if dnsmasq is not updated with the new version of pihole you need to remove "log-queries=extra" from /etc/dnsmasq.d/01-pihole.conf. This fixed the problem even though I do have the new version of dnsmasq. So no idea why it is needed, but moving on.
-
The admin gui also had a red dot next to FTL, after more googling I discovered that you can restart the service using "sudo service pihole-FTL restart." Annoyingly this is neccesary every time I restart the pi, but for now I continued on.
The gui now shows everything is running, but still no clients connected the pi can connect to the internet. I moved on the the pihole-d text. This showed some red text that I tried to look into.
No matter my attempts and hours I cannot get the thing to work. Everything can ping everything else including domains and ip addresses, but still not progress.
As you can see the pihole installation has been anything but easy for me, so I am finally about to give up and figured I would see if I could get any help.
My debug token is: 19780xehwj
Thank you for any advice, and hopefully I can get this working!