i've gotten pihole running pretty solidly as my network resolver host as well as dhcp provider, but recently i noticed that i've got a strange behaviour from/on one of my linux hosts on my network that is using pihole as its resolver..
when i try to ssh into the linux host, it first hangs for over half a minute before completing the login.. this is a classic sign of DNS resolution issues. But when on i do finally log in, it has resolved the client hostname properly, so i turned to tcpdump:
12:23:36.909013 IP 192.168.0.52.40037 > 192.168.0.254.domain: 49171+ A? macbookpro.home.my-domain. (41)
12:23:36.909032 IP 192.168.0.52.40037 > 192.168.0.254.domain: 49171+ A? macbookpro.home.my-domain. (41)
12:23:36.910145 IP 192.168.0.52.49598 > 192.168.0.254.domain: 43045+ AAAA? macbookpro.home.my-domain. (41)
12:23:36.910155 IP 192.168.0.52.49598 > 192.168.0.254.domain: 43045+ AAAA? macbookpro.home.my-domain. (41)
and looking at the logs of pihole:
Apr 27 11:23:36 dnsmasq[1341]: query[A] macbookpro.home.my-domain from 192.168.0.52
Apr 27 11:23:36 dnsmasq[1341]: DHCP macbookpro.home.my-domain is 192.168.0.22
Apr 27 11:23:36 dnsmasq[1341]: query[AAAA] macbookpro.home.my-domain from 192.168.0.52
Apr 27 11:23:36 dnsmasq[1341]: forwarded macbookpro.home.my-domain to 208.67.222.222
Apr 27 11:23:36 dnsmasq[1341]: forwarded macbookpro.home.my-domain to 127.0.0.1
Apr 27 11:23:36 dnsmasq[1341]: forwarded macbookpro.home.my-domain to 208.67.222.222
So from the looks of it, it looks like after pi-hole properly resolves the IPV4 A query, it ALSO is forwarding the AAAA query for an IPV6 version of the address UPSTREAM..
what options need to be set with pihole to prevent this? I have the following two settings turned ON:
Never forward non-FQDNs
Never forward reverse lookups for private IP ranges
but they don't seem to affect the issue, as what it's looking up IS a fqdn :-/ i also tried to enable ipv6 in dhcpd section
still my logins to this host take upwards of 40 seconds (when they should be taking milliseconds), it also happens when logging OUT from the linux host also.. I don't think there's something misconfigured on the linux host, it's just using plain dhcp..
so basically, how do i fix this situation so pi-ihole isn't contributing to stalling of ssh login connections to/from my linux hosts on forwarding ipv6 queries upstream??