The issue I am facing:
Conditional forwarding is only resolving hostnames for IPv4 clients. I have tried a myriad of solutions found on these forums and Reddit to no avail. From what I understand, Pi-hole IS capable of resolving IPv6 clients using conditional forwarding, but I have yet to find clear documentation or an example of how to configure this. A lot of topics on these forums close with a dead end without a clear solution.
From what I gather, UniFi Network may not be able to respond to IPv6 PTR queries, but I'm curious if anyone has had success with this setup.
Details about my system:
Pi-hole is running in a Docker container using the macvlan driver. It has the local addresses:
10.20.1.5
2600:1234:abcd::5
Upstream DNS is configured to Cloudflare using the GUI checkboxes.
Pi-hole is NOT being used as a DHCP server; my UniFi Dream Machine Pro is my DHCP server.
Conditional forwarding is enabled with the options:
- Local network:
10.20.0.0/16
- DHCP server:
10.20.1.1
- Local domain:
my.home
What I have changed since installing Pi-hole:
I've added /etc/dnsmasq.d/90-custom.conf
with the following attempts (between each comment), but the result is always the same, that IPv4 clients display a nice, neat hostname, and IPv6 clients only show their IPv6 address.
# New Attempt:
rev-server=2600:1234:abcd::/64,2600:1234:abcd::1
server=/my.home/2600:1234:abcd::1
# New Attempt:
rev-server=2600:1234:abcd::/64,10.20.1.1
server=/my.home/10.20.1.1
# New Attempt:
rev-server=2600:1234:abcd::/64,fe80::9876:b9ff:fe1b:c827
server=/my.home/fe80::9876:b9ff:fe1b:c827
# New Attempt:
server=/0.8.e.f.ip6.arpa/10.20.1.1
# New Attempt:
server=/0.0.6.2.ip6.arpa/10.20.1.1
I've also tried setting my upstream DNS to my DHCP server/router at address 10.20.1.1
, and checking AND unchecking the options Never forward non-FQDN A and AAAA queries
and/or Never forward reverse lookups for private IP ranges
in multiple combinations.
I can see where Pi-hole is querying my DHCP server for the PTR record of f.a.2.0.0.0.0.6.0.0.0.0.0.0.0.0.0.0.0.a.b.c.d.4.3.2.1.1.0.0.6.2.ip6.arpa
but the reply is NXDOMAIN, leading me to suspect this may be a UniFi problem.