Fritz Box ipv6 reverse resolution

Hi all,

my problem is very similar to this one this one - exept my pi hole runs without the built-in DHCP-Server.

So the problem is i cant get the ipv6 reverse lookup running (ipv4 works fine). In the Dashboard's Top Clients i only get to see ipv6-adresses which makes it impossible to match users and machines.

I tried several recommendations .. with/without ULAs, with different upstream DNS-Server, conditional forwarding etc.

Current setup looks as following :

  • DHCPv6 on fritzbox enabled
  • Fritzbox delivers the pi hole's v4+v6 adress via DHCPv6
  • "Never forward non-FQDNs" and "Never forward reverse lookups for private IP ranges" disabled
  • Fritzbox is configured as ipv4 and ipv6 Upstream
  • "fritz.box" Domain is configured as rebound protection

Forward resolution works perfectly.

root@raspberrypi:~# dig -t AAAA desktop.fritz.box +short @192.168.1.1
2001:4dd6:5cee:0:2d83:f359:a5ff:f260

But reverse doesn't work at all.


; <<>> DiG 9.10.3-P4-Raspbian <<>> -x 2001:4dd6:5cee:0:2d83:f359:a5ff:f260 @192.168.1.1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 55641
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;0.6.2.f.f.f.5.a.9.5.3.f.3.8.d.2.0.0.0.0.e.e.c.5.6.d.d.4.1.0.0.2.ip6.arpa. IN PTR

;; AUTHORITY SECTION:
0.0.0.0.e.e.c.5.6.d.d.4.1.0.0.2.ip6.arpa. 9 IN SOA fritz.box. admin.fritz.box. 1559594332 21600 1800 43200 10

;; Query time: 1 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Mon Jun 03 21:38:52 BST 2019
;; MSG SIZE  rcvd: 150

It almost seems like this is not completly a pi hole problem.. but kind of related to it.

Do you have any information on this? Should the fritzbox deliver the ipv6's reverse resolution for native and ULA-adresses. Do i have some kind of misconception?

Thank you in advance!

Expected Behaviour:

Reverse resolution of ipv6 adresses .. for example in Top Clients list.

Actual Behaviour:

Only ipv6 adresses, instead of hostnames. ipv4 works fine.

Debug Token:

ye1va4xlas

If there is no way to determine the hostname of a device given its IPv6 address, then Pi-hole can not do it either.

Hey @MaxPowers,

I had the same problem as you, but just fixed it with the help of the topic you linked.

My setup is basically the same as yours:
I use my Fritzbox for DHCP, have ULA assignment activated and it announces the pihole's ipv4 and ipv6 (ULA) as DNS server over DHCP to clients. Conditional forwarding on the Pihole is set to my routers ipv4 (192.167.178.1) and domain (fritz.box).
BUT opposed to you, I have “Never forward non-FQDNs” and “Never forward reverse lookups for private IP ranges” activated, as default. And I use different Upstream DNS Servers.

When you take a look at the end of /etc/dnsmasq.d/01-pihole.conf you should already see the entry
server=/178.168.192.in-addr.arpa/192.168.178.1
which is used to forward all reverse lookups for 192.168.178.xxx to the fritzbox

Now what you want to do, is, add another line for the reverse lookup of ULAs. Assuming you haven't changed the default ULA prefix of fd00 the line should look like this
server=/0.0.d.f.ip6.arpa/fd00::xxxx:xxxx:xxxx:xxx
with the address behind the second slash being the ULA of the fritzbox, which you can find on the config page for ipv6.

Now save and restart and you should be good to go. The pihole admin page should now show the host names instead of the ULAs.

Hope this helps.

2 Likes

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