Depending on your OS's configuration, nslookup
may issue several DNS requests for a given domain, to retrieve A
and AAAA
records for the plain domain as well as for the domain extended by our local search domain.
If you watch your Pi-hole's Query Log, I'd expect you to see at least as many as four separate DNS queries when you issue your nslookup
.
When Pi-hole receives a DNS request, it will check whether to block or allow it, and if allowed, it will check whether it may know the domain itself (either by virtue of its cache or by local DNS definitions), and if it doesn't, it will forward the DNS request upstream.
Now in your case, your debug log shows you've only configured IPv4 addresses for the domain in question.
So while Pi-hole will answer an A
request from your local definitions, your lack of configuring an IPv6 address for that domain will prompt Pi-hole to correctly forward a respective AAAA
request to its upstreams.
If you want to shadow the IPv6 address as well, you could simply add the respective private IPv6 addresses (fd00::/8
ULAs or fe80::/10
link-locals) of your 172.16.0.150
machine for your domain. If you have trouble using ULAs or link-locals, you could also use the ::
non-routable meta-address instead.
Since I note that you have quite a few local DNS definitions in place, you may also consider to block IPv6 queries for those.
You could do so by adding wildcard (tick!) domain filters for your domains agndomain.home;querytype=AAAA
and agngaming.com;querytype=AAAA
via Group Management | Domains if you really could do without IPv6 for them.
Note carefully that the latter, public domain may result in overblocking for IPv6. In that case, if you have to be more specific, you should prefer to just create the local DNS IPv6 records.
I also noticed that one of your domains ends in .local
.
Note that *.local
FQDNs are reserved for usage by the mDNS protocol and should not be used with DNS.