Local DNS lookup fails, preventing pihole upgrade

The issue I am facing:
when running sudo pihole -up it fails after showing this message while checking for updates.

"fatal: unable to access 'GitHub - pi-hole/pi-hole: A black hole for Internet advertisements': Could not resolve host: github.com"

Running ping -c4 github.com on another machine that uses the pi-hole for DNS qorks as expected.

Details about my system:
Running on a Pi4 4GB on IP 192.168.0.2

l@pihole:~ $ uname -a
Linux pihole 5.15.76-v8+ #1597 SMP PREEMPT Fri Nov 4 12:16:41 GMT 2022 aarch64 GNU/Linux

l@pihole:~ $ sudo pihole -up
[✓] Update local cache of available packages
[i] Existing PHP installation detected : PHP version 7.4.33
[✓] Checking for git
[✓] Checking for iproute2
[✓] Checking for dialog
[✓] Checking for ca-certificates

[i] Checking for updates...
fatal: unable to access 'GitHub - pi-hole/pi-hole: A black hole for Internet advertisements': Could not resolve host: github.com
[i] Pi-hole Core: up to date
fatal: unable to access 'GitHub - pi-hole/AdminLTE: Pi-hole Dashboard for stats and more': Could not resolve host: github.com
[i] Web Interface: up to date
[i] FTL: update available

[i] FTL out of date, it will be updated by the installer.

[✓] Root user check

    .;;,.
    .ccccc:,.
     :cccclll:.      ..,,
      :ccccclll.   ;ooodc
       'ccll:;ll .oooodc
         .;cll.;;looo:.
             .. ','.
            .',,,,,,'.
          .',,,,,,,,,,.
        .',,,,,,,,,,,,....
      ....''',,,,,,,'.......
    .........  ....  .........
    ..........      ..........
    ..........      ..........
    .........  ....  .........
      ........,,,,,,,'......
        ....',,,,,,,,,,,,.
           .',,,,,,,,,'.
            .',,,,,,'.
              ..'''.

[i] SELinux not detected
[✓] Update local cache of available packages
[i] Existing PHP installation detected : PHP version 7.4.33

[✓] Checking apt-get for upgraded packages... 13 updates available
[i] It is recommended to update your OS after installing the Pi-hole!

[i] Checking for / installing Required dependencies for OS Check...
[✓] Checking for grep
[✓] Checking for dnsutils

[✗] Retrieval of supported OS list failed. dig failed with return code 10.
Unable to determine if the detected OS (Debian 11) is supported

What I have changed since installing Pi-hole:
Attempted to install wireguard to use as a client for other apps on the system, but this is currently disabled from starting at boot.

The output you've seen is consistent with how Pi-hole currently behaves if github is unavailable to it for some reason. Is your Pi-hole using itself for DNS? On your Pi-hole can you run the command below and post the output please:

nslookup github.com

Sorry, I should have been clearer. The PiHole fails to do DNS lookups locally, but appears to work for remote clients.

l@pihole:~ $ nslookup github.com
;; connection timed out; no servers could be reached

This will temporarily change the nameserver on the Pi:

sudo nano /etc/resolv.conf

Edit the nameserver line to nameserver 9.9.9.9 or your preferred third party DNS service, save and exit.

Then try again.

While that should work, it doesn't!

Would you be able to post sample output that shows what you're describing here?

Has it ever worked?

Are you able to remote in and run pihole -d -a and post just the token URL here, as that will create and automatically send staff a debug log which will help reveal a lot.

See the sample output above for nslookup command.

For local lookup I can't say for sure if it previously worked. I think it did, but wouldn't swear to it.

I can remote in, but due to the failing local lookup that command cannot upload the report.

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