DNS Not Resolving on Localhost

Expected Behaviour:

I have configured pi-hole as the DNS and DHCP servers, I've given it a static IP and set local DNS to 127.0.0.1. DNS resolves for every device on the network and everything is running smoothly for all devices except the localhost. I have set Interface listening behavior to "Listen on all interfaces"

  • Ubuntu Bionic Beaver (18.04.4 LTS)
  • Hyper-V on Windows 10

Actual Behaviour:

The localhost can't resolve dns queries for itself. I can ping 8.8.8.8 but get no response when I ping google.com.

Debug Token:

[✗] There was an error uploading your debug log.

  • Please try again or contact the Pi-hole team for assistance.

For the Pi-hole host platform, what is the assigned nameserver.

cat /etc/resolv.conf

nameserver 127.0.0.53

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

sudo nano /etc/resolv.conf

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

Run pihole -d and upload the debug log

v0m1cvcqp1

The debug log is normal. You do have two IP's on the active interface, only one of which is being used by Pi-hole. If this was not intentional (and it appears it was not), then you may want to address this:

*** [ DIAGNOSING ]: Networking
[✓] IPv4 address(es) bound to the eth0 interface:
   10.1.1.62/24 matches the IP found in /etc/pihole/setupVars.conf
   169.254.71.228/16 does not match the IP found in /etc/pihole/setupVars.conf (https://discourse.pi-hole.net/t/use-ipv6-ula-addresses-for-pi-hole/2127)

Deleted the APIPA and I'm good to go. Thanks for your help!

A post was split to a new topic: DNS resolution

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