The issue I am facing:
I am encountering inconsistent behavior with Pi-hole when resolving SRV and TXT DNS records for subdomains of the search domain set in Pi-hole. For example, when executing dig _minecraft._tcp.minecraft.gability.com -t SRV
, I receive an NXDOMAIN response, indicating that the record does not exist:
; <<>> DiG 9.10.6 <<>> _minecraft._tcp.minecraft.gability.com. -t SRV
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 55986
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; QUESTION SECTION:
;_minecraft._tcp.minecraft.gability.com. IN SRV
;; Query time: 42 msec
;; SERVER: 192.168.1.2#53(192.168.1.2)
;; WHEN: Wed Mar 13 11:55:18 CET 2024
;; MSG SIZE rcvd: 67
Additionally, appending a dot at the end of the domain name (indicating it's a fully qualified domain name) did not resolve the issue:
; <<>> DiG 9.10.6 <<>> _minecraft._tcp.minecraft.gability.com. -t SRV
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 55986
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; QUESTION SECTION:
;_minecraft._tcp.minecraft.gability.com. IN SRV
;; Query time: 42 msec
;; SERVER: 192.168.1.2#53(192.168.1.2)
;; WHEN: Wed Mar 13 11:55:18 CET 2024
;; MSG SIZE rcvd: 67
However, when I change the search domain to a different value and re-execute similar dig
commands, the SRV and TXT records resolve correctly, indicating the issue is tied to how Pi-hole handles the specific search domain.
Details about my system:
- Pi-hole version: v5.17.3 (Core), v5.21 (Web), v5.25.1 (FTL)
- Operating System: Debian 11
- Hardware: Raspberry Pi (aarch64)
- DNS server used upstream: Google DNS (8.8.8.8 and 8.8.4.4). Same result with unbound.
- Network setup: Pi-hole is the DHCP server and DNS resolver in the network.
What I have changed since installing Pi-hole:
- Configured Pi-hole to use Google DNS as the upstream DNS server.
- Attempted to append a dot at the end of the domain name to treat it as a fully qualified domain name, which did not resolve the issue.
- Enabled DHCP server functionality within Pi-hole.
- Removed Unbound DNS from my setup, previously used as a recursive server.
- Attempted to debug and resolve the issue by checking Pi-hole and system configurations, flushing DNS caches, and testing with direct dig queries.
- Nothing useful in logs.
- Adding the search domain
search gability.com
manually to/etc/resolv.conf
didn't do anything. - I ran
pihole -d
and check that everything looks fine.