Pi hole up and running but no internet connection when dns used

Please follow the below template, it will help us to help you!

Expected Behaviour:

modem/router changed dns, all devices are able to connect to internet and have adblock

Actual Behaviour:

The webpage shows pihole up and running and even receiving queries, however any device such as laptop or phone is unable to connect to anything outside the LAN

Debug Token:

https://tricorder.pi-hole.net/a2g0g7h75m

Your debug log shows that gravity (the master list of blocked domains) is empty.

** [ DIAGNOSING ]: Gravity list
-rw-r--r-- 1 root root 0 Dec 31 04:16 /etc/pihole/gravity.list
   -----head of gravity.list------

   -----tail of gravity.list------

Fix this by rebuilding gravity (pihole -g from the terminal or from the web admin GUI > tools > update gravity.

After you made the DNS changes in your router, did you reboot the router and renew the DHCP leases on all connected clients? They need the new DNS information to use Pi-Hole.

1 Like

The gravity update solved the new issue i was having but the old issue remains. Restarting the router with only the pihole ip as the dns, flushing the dns cache on my lap top, and renewing the dhcp on my laptop still did not allow me to connect to the internet. In order to make this reply, I have the pihole dns as my first listed on the modem/router, and the secondary and tertiary as the ones provided by spectrum.
For some reason my pi connected via ethernet doesn't have internet access anymore so I cant provide any new debug log. I have run sudo dhclient -v -r eth0 and it has not fixed the pi connection issue

The Pi may not have internet connectivity if Pi-Hole is not working, as the Pi uses Pi-Hole for DNS server. Try these steps to get us a debug log:

This will temporarily reset the nameserver on the Pi to bypass Pi-Hole DNS.

sudo nano /etc/resolv.conf

edit nameserver 127.0.0.1 to nameserver 9.9.9.9 or your preferred third party DNS service, save and exit

Run pihole -d and upload the debug log

1 Like

changing the nameserver to 9.9.9.9 and changing it to the dns provided by my ISP (209.18.47.61) has not solved the pi connection issue. Also, on the web interface from my laptop, it continues to recieve queries and states that it is blocking some requests. Yet I see no evidence of it and have no internet connection if it were listed as the only server on the modem/router.

It appears that the Pi connection issue is at the OS level, and not the Pi-Hole level. I would look on the appropriate OS forum to get the connection issue sorted, then we can get Pi-Hole working for you.

1 Like

I believe I got a solution. I ended up resetting my pi and noticed that it gave a warning about being unable to update its packages on initial install, so I manually updated it and then grabbed a fresh version of pi hole and everything seems to work correctly. So in the future if someone comes across a similar issue, run sudo apt update then sudo apt full-upgrade to make sure the device is updated. Thank you for your help jfb

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.