DNS Timeout on network devices; Pihole appears to be resolving DNSs

Expected Behaviour:

Devices connected to the network can access the internet fully.

Actual Behaviour:

  • Devices connected to the network persistently receive DNS timeout errors.
  • Local resolution of pi.hole to raspberry pi's static IP works as expected.
  • Pinging an external IP address (ex 8.8.8.8) works as expected.

Other Notes

  • This started happening overnight-- the system was working for well over a year and abruptly stopped.
  • I have attempted rebooting the rpi running pihole, running pihole restartdns, and restarting the router.
  • pihole is configured with default settings.
  • I am using my router's DHCP server.
  • The router is configured to use the rpi as the DNS server:
  • I'm not sure if this helps, but I saw this brought up on other threads with similar problems:
$ dig pi-hole.net @208.67.222.222                                                                                                                                                                                                                                                                                                    
; <<>> DiG 9.16.37-Debian <<>> pi-hole.net @208.67.222.222                                                                                                                  
;; global options: +cmd                                                                                                                                                     
;; Got answer:                                                                                                                                                              
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 8424                                                                                                                    
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1                                                                                                                                                                                                                                                                                    
;; OPT PSEUDOSECTION:                                                                                                                                                       
; EDNS: version: 0, flags:; udp: 1410                                                                                                                                       
;; QUESTION SECTION:                                                                                                                                                        
;pi-hole.net.                   IN      A                                                                                                                                                                                                                                                                                                               
;; ANSWER SECTION:                                                                                                                                                          
pi-hole.net.            300     IN      A       3.18.136.52                                                                                                                                                                                                                                                                                             
;; Query time: 32 msec                                                                                                                                                      
;; SERVER: 208.67.222.222#53(208.67.222.222)                                                                                                                                
;; WHEN: Fri Jul 19 02:30:23 PDT 2024                                                                                                                                       
;; MSG SIZE  rcvd: 56  
$ dig pi-hole.net                                                                                                                                                                                                                                                                                                                      
; <<>> DiG 9.16.37-Debian <<>> pi-hole.net                                                                                                                                  
;; global options: +cmd                                                                                                                                                     
;; Got answer:                                                                                                                                                              
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 19790                                                                                                                  
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1                                                                                                                                                                                                                                                                                    
;; OPT PSEUDOSECTION:                                                                                                                                                       
; EDNS: version: 0, flags:; udp: 512                                                                                                                                        
; EDE: 8 (Signature Not Yet Valid)                                                                                                                                          
;; QUESTION SECTION:                                                                                                                                                        
;pi-hole.net.                   IN      A                                                                                                                                                                                                                                                                                                               
;; Query time: 32 msec                                                                                                                                                      
;; SERVER: 192.168.1.154#53(192.168.1.154)                                                                                                                                  
;; WHEN: Fri Jul 19 02:31:32 PDT 2024                                                                                                                                       
;; MSG SIZE  rcvd: 46    

Debug Token:

Unable to upload automatically:

[✓] ** FINISHED DEBUGGING! **

   * The debug log can be uploaded to tricorder.pi-hole.net for sharing with developers only.
[i] Debug script running in automated mode
    * Using curl for transmission.
    * curl failed, contact Pi-hole support for assistance.
    * Error message: curl: (6) Could not resolve host: tricorder.pi-hole.net

[✗] There was an error uploading your debug log.
   * Please try again or contact the Pi-hole team for assistance.
   * A local copy of the debug log can be found at: /var/log/pihole/pihole_debug.log

Copy of log is attached.
piholedebug.txt (33.1 KB)

Update: I have been informed that the one macbook on this local network is operating normally. Several windows PCs, android phones, and an ubuntu computer are having the described DNS timeout issues.

Ok, after switching my router back to the default DNS resolver I realized that my pi was still unable to resolve DNS lookups, while the rest of my network was fine.

Turns out resolvconf decided to modify /etc/resolv.conf, once I commented out nameserver [pihole local ip] and added nameserver 8.8.8.8 everything started working as expected again.