Local DNS not working, Pi-hole working as DHCP server

I'm unsure on how to get local DNS working in my setup.

Expected Behaviour:

I'm using my Pi-hole as my DHCP server since our router (Salt Fiber Box White) does not allow to set a local DNS entry. I was expecting the local DNS entries to resolve for all devices connected to the network that have a valid DHCP lease from Pi-hole.

Actual Behaviour:

The DHCP service is working as intended, but my entries in the local DNS section do not work on devices that are connected to the network and that are using the DHCP server.

My local DNS entries

From the Pi-hole

From another machine connected to the same network

nslookup storage.nigood from another device returns a IPv6 address for both server and address and ** server can't find storage.nigood: NXDOMAIN

The log file pihole.log does not change when the doing the latter.

Debug Token:

hzb2DS0N

On the machine where it doesn't work, is that server IPv6 address that of your Pi-hole (ending fc)? To see if Pi-hole is being used, try:

nslookup pi.hole

What happens if you force the use of Pi-hole?

nslookup storage.nigood 192.168.1.55

No, it's not the IP of the Pi-hole sadly.

When running nslookup pi.hole, I receive the same IPv6 address with the NXDOMAIN message.

When forcing to use Pi-hole, it works and I receive the expected IPv4 address.

You will need to ensure that the OS on that machine is using Pi-hole exclusively for its DNS. If the address of the IPv6 server it's using ends 55, that looks like it's probably your router handling the DNS for that machine instead of Pi-hole.

Likely, chrislph is correct and your router is advertising its own IPv6 address as DNS server, allowing your IPv6-capable clients to by-pass Pi-hole.

You'd have to find a way to configure your router to advertise your Pi-hole host machine's IPv6 as DNS server or to stop advertising its own.

You'd have to consult your router's documentation sources on further details for its IPv6 configuration options.

If your router doesn't support configuring IPv6 DNS, you could consider disabling IPv6 altogether, provided you'd not depend on IPv6 for reasons.

If your router doesn't support that either, your IPv6-capable clients will always be able to bypass Pi-hole via IPv6.

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