PiHole DNS not working in one network but works on the other

I will specify already that I am talking about two completely different networks in two different houses.

I have configured PiHole in a Raspberry Pi Zero W, running DietPi and installing PiHole directly from there. This is running smoothly in my apartment since day 1. I have there a TP Link AX10 (AX 1500).

Now, I wanted to install PiHole also in my family home. I am using a Raspberry Pi 4, running the latest Raspberry OS 64bit. The router here is a TPLink VX230v from my provider (it has no restrictions though).

Again here the setup was smooth and easy but it is just not working. I cannot resolve pi.hole domain locally, and I can't see any query passing through the PiHole. I setup the DNS in the DHCP DNS settings as done previously. I also tried to install it natively without Docker, but same result.

It was so easy to setup the first time. What is happening here?

The only weird thing that I have noticed is that there is a third IPv6 DNS server in my DNS list on my network interface, that I have never set anywhere. Don't know if this is normal honestly.

Some other screenshots of the config:

When you installed your first Pi-hole, it probably was in a network without IPv6 connectivity.

In your new network, your router is advertising its own IPv6 address as DNS server, allowing your clients to by-pass Pi-hole.

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

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.

Hi, sorry for the late reply. I didn't get any notification that you answered this thread.
Ok interesting that the reason could be that. I have checked on my first router and indeed I can't see anything related to IPv6 so maybe the AX10 does not support it. In my other network indeed I do have IPv6 support it and I have seen that my providers assigns me an IPv6 too, but I have not seen any IPv6 configuration related to the LAN. I will try to see what I can do as soon as I am back home.

Hi, you were mostly right. My router has IPv4 and IPv6 settings for most of the stuff. I just needed to click in a very small tab on the corner to switch to IPv6 settings.
I have completely disabled IPv6 DHCP, but also I have found out that I was missing this env variable on my Pi-Hole Docker container:

DNSMASQ_LISTENING=all

Setting this made the Pi Hole DNS finally work!