DNS Conditional Forwarding works for IPv4 but not for IPv6

Please follow the below template, it will help us to help you!

I recently changed my router to OpenWRT so I had better control on settings, specially IPv6.

I then disabled DHCP on Pihole and started using OpenWRT's, because it was easier to set IPv4 address and IPv6 suffix for each device.

In place of that I enabled Conditional Forwarding on Pihole, set my router's IPv4 address and LAN domain, and on OpenWRT's dnsmasq I set Pihole as DNS resolver.

Expected Behaviour:

Dashboard should list client's domain names.

Actual Behaviour:

When clients connect to Pihole by IPv4 their domain names are used, but when they connect by IPv6 it uses their address. This makes devices duplicate on the lists and split their counts.

Debug Token:

https://tricorder.pi-hole.net/qh9oekunnv

Do you need IPv6? If not, it is simplest to disable it on your network.

Note that IPv4 can still provide an AAAA query.

What is the output of this command:

echo ">top-clients withzero (25)" | nc 127.0.0.1 4711

Is this a new install - your long term database shows no activity when it was read when pihole-FTL started:

   [2019-09-12 17:12:02.330 11486] Imported 0 queries from the long-term database
   [2019-09-12 17:12:02.330 11486]  -> Total DNS queries: 0
   [2019-09-12 17:12:02.330 11486]  -> Cached DNS queries: 0
   [2019-09-12 17:12:02.331 11486]  -> Forwarded DNS queries: 0
   [2019-09-12 17:12:02.331 11486]  -> Exactly blocked DNS queries: 0
   [2019-09-12 17:12:02.331 11486]  -> Unknown DNS queries: 0
   [2019-09-12 17:12:02.331 11486]  -> Unique domains: 0
   [2019-09-12 17:12:02.331 11486]  -> Unique clients: 0
   [2019-09-12 17:12:02.331 11486]  -> Known forward destinations: 0

Your debug log also shows that your conditional forwarding is to a device on a different subnet than your Pi:

    PIHOLE_INTERFACE=enp1s0
    IPV4_ADDRESS=192.168.1.2/24

    CONDITIONAL_FORWARDING_IP=192.168.49.1
1 Like

hmm looks like I edited my OP in place of replying...

Thanks!

I changed my router recently and with it I changed my subnet, I think I left Pihole with outdated settings, I don't remember seeing these on its WebUI settings lol

And I also flushed my logs in case these IPs were old data.

0 25667 127.0.0.1 localhost
1 1942 fdfa::101
2 1514 fdfa::100
3 1462 192.168.49.101 main.home.hikarinet.info
4 349 fe80::c40b:7049:4b74:f40f
5 309 192.168.49.100 server.home.hikarinet.info
6 72 192.168.49.114 note9.home.hikarinet.info
7 25 192.168.49.104 nas104.home.hikarinet.info
8 25 fdfa::104
9 10 192.168.49.140 yamaha.home.hikarinet.info
10 1 192.168.1.2 urubu
11 1 ::1 ip6-localhost
12 1 fe80::b685:b26b:79a1:4011 urubu
---EOM---

I'm learning about IPv6 and trying what I'm able to make work with it and what not. In the future I may disable stuff that doesn't work properly, but I don't wanna just disable anything in the first attempt.

Setting OpenWRT's dnsmasq to advertise Pihole as LAN's DNS resolver and use its ULA was somehow challenging, and at least this issue seems to show this part is working. I just need to fix it now.

If you don't need IPv6, it simplifies network troubleshooting to disable it on the router and clients.

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