Pihole DNS not resolving from pihole itself

Expected Behaviour:

Pihole should be able to make DNS requests from itself and its OS.

I have it setup using DoH and all clients are working normally and can browse the internet using DNS names and 1.1.1.1/help also states DoH is working.

The setup is fairly new and all clients are clearly working and dns is resolving by pihole so this all good.

Actual Behaviour:

Pihole not able to resolve DNS names itself, meaning I can ping 8.8.8.8 from pihole console but I cant ping google.com, so piholes own resolver is for some reason not working. Do not know why this is happening.
Any ideas?

Debug Token:

(Moderator edit: link to explicit debug log removed)

( When providing a debug token, please just post the token that is shown once the debug finishes (preferably by copy and paste). For your own privacy and security, please do not post the full, unsanitised output.)

Pi-hole does not touch the DNS configuration of the host it runs on.

It is recommended to use at least one public DNS resolver for the host, so you would still be able to do updates and run fixes in the event of Pi-hole being inoperational.

Your debug log suggests you did configure your host OS to use 192.168.1.5 for DNS:

-rw-r--r-- 1 root root 65 May  3 03:36 /etc/resolv.conf
   nameserver 192.168.1.5

You'd have to address your issue by adjusting that machine to accept and answer DNS requests.

Alternatively, if you no longer want your host to use 192.168.1.5 for DNS, you'd have to change the DNS configuration of your host OS.
It would depend on your host OS how you do that.

For RPi OS 11 (as shown by your debug log), that would most likely involve either editing /etc/dhcpcd.conf or configuring NetworkManager.

Thanks Buckin_Horn
I added the cloudflare dns to the dhcpcd.conf and all working as expected.

1 Like

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