Pi-hole and OpenWrt setup (IPv6 issue?)

Hi, I have a fairly vanilla setup of Pi-hole on a RPi and OpenWrt on a router. I've set up OpenWrt using method 2 from https://discourse.pi-hole.net/t/how-do-i-configure-my-devices-to-use-pi-hole-as-their-dns-server/245. However, ads are still not being filtered. Upon looking at the DNS servers of a client, I see the following entries

IPv4 DNS servers: <IPv4 address of pihole>
IPv6 DNS servers: <IPv6 address of router>

I suspect the second line is causing DNS resolution to go to the router instead of the pihole. How can I fix this? Thanks.

If your Pi has a static IPv6 address, add it in the LAN interface configuration under "Announced IPv6 DNS servers". It can be the ULA address so that the prefix doesn't change if the GUA prefix changes from your ISP.

1 Like

Thanks for the suggestion. I was able to resolve this issue by unchecking "Local IPv6 DNS server" to prevent OpenWrt from announcing itself to the clients.

1 Like

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