Please follow the below template, it will help us to help you!
Expected Behaviour:
Internet to my router after pi hole unplug/reboot
Actual Behaviour:
No internet to my router after reboot
Debug Token:
no debug token. fails when trying to upload it
I had to move my router and modem today so I unplugged everything so I could. Upon plugging everything back in I no longer have internet to the router. I've done this many times before and it worked when I plugged everything back in. I'm not sure what is happening this time.
Did you unplug the Pi while it was running, or did you use the Linux terminal to shut it down? Pi's don't always react well to sudden power loss. Additionally, if you have DNSSEC enabled in Pi-Hole and the Pi loses track of time (not unusual since it has no clock built in), then you will lose DNS resolution since the authentication algorithm requires and accurate time.
Try this 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
I did just unplug it without shutting down through terminal. According to my pi hole admin console I do not have DNSSEC enabled. I believe I overwrote the nameserver correctly but it still wouldn't let me upload but I was able to get a text file of and copy it to a flash drive.
Both the debug logs you uploaded show a common problem - the Pi cannot reach the internet via your router.
[i] Default IPv4 gateway: 192.168.1.1
192.168.1.1
* Pinging 192.168.1.1
192.168.1.1...
[✗] Gateway did not respond. (https://discourse.pi-hole.net/t/why-is-a-default-gateway-important-for-pi-hole/3546)
*** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
[✓] xin-lian.cn is 0.0.0.0 via localhost (127.0.0.1)
[✓] xin-lian.cn is 0.0.0.0 via Pi-hole (192.168.1.33)
[✗] Failed to resolve doubleclick.com via a remote, public DNS server (8.8.8.8)
My bad, I've been so frustrated with all of this and I'm losing my mind. Everything was unplugged so I could get internet to my computer straight from the modem.
The Pi can reach the router now, but cannot connect to an external DNS server. Do you have any router firewalls in place to block outgoing port 53 traffic?
*** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
[✓] scribol.com is 0.0.0.0 via localhost (127.0.0.1)
[✓] scribol.com is 0.0.0.0 via Pi-hole (192.168.1.33)
[✗] Failed to resolve doubleclick.com via a remote, public DNS server (8.8.8.8)
If you didn't set it up, it's not likely you have such a filter. Do basic connectivity checks from the Pi to the internet and to/from other clients with ping. Example from the Pi:
Well, I unplugged the modem and router and shut down the pi hole. I let it sit for a few minutes then plugged everything back in and now it works this time. I did this multiple times early today without any luck. For some reason it wants to work now.