Private Reverse DNS not working correctly
Prerequisites
-
[x] I have checked the Wiki and Discussions and found no answer
-
[x] I have searched other issues and found no duplicates
-
[x] I want to report a bug and not ask a question or ask for help
-
[x] I have set up AdGuard Home correctly and configured clients to use it. (Use the Discussions for help with installing and configuring clients.)
Platform (OS and CPU architecture)
Linux, AMD64 (aka x86_64)
Installation
Docker
Setup
On one machine
AdGuard Home version
v0.107.57
Action
Various devices on my home network use dns-sd. I enabled private reverse dns in adguard home to route these requests to my router (fritzbox - supports it) but for some reason not all of these request are being forwarded to my router but instead to my upstream dns server who (correctly) answers with NXDOMAIN.
Expected result
All suitable requests should be routed to my private dns/router instead of my upstream dns server configured in AGH.
Actual result
Settings with "Use private reverse DNS resolvers" turned on as well as the IP of my router as the resolver:
Lookup for "_dns-push-tls._tcp.ipv4only.arpa" forwarded to my upstream DNS instead of private DNS resulting in NXDOMAIN:
Lookup for "134.178.168.192.in-addr.arpa" correctly forwarded to my private DNS:
Lookup for "134.178.168.192.in-addr.arpa" forwarded to my upstream DNS instead of private DNS resulting in NXDOMAIN (nothing changed in settings):
For some reason, even the "same" requests (last 2 screenshots) behave differently even tho I changed nothing.
Additional information and/or screenshots
172.121.0.3:5335 is unbound running locally as a docker-container.
I don't know if it's related but I see a lot of queries like lb._dns-sd._udp.210.19.72.100.in-addr.arpa from Apple devices and don't know what to do with it.
I also see queries with code "FORMERR":
The screenshots compare different DNS requests, so they do not demonstrate that one request is routed inconsistently. The requests sent to the regular upstream are SRV and A lookups. The request sent to the private reverse-DNS server is the eligible PTR lookup. That matches current routing behavior: private reverse DNS is for reverse queries in locally served address ranges, not arbitrary forward or service-discovery names.
If ipv4only.arpa should use a particular resolver, configure a
domain-specific upstream for that forward domain. The
lb._dns-sd._udp.<reverse-name> traffic mentioned later is DNS-SD legacy
browsing generated by a LAN client; it is separate from the original
ipv4only.arpa comparison.
Unless an identical PTR request can be shown going to different upstreams on a current release, this looks like expected configuration behavior and is a closure candidate.
Hello. The screenshots show different types of queries, which explains the “inconsistent” routing. Only PTR queries for local ranges are directed to your private reverse DNS server. As for A and AAAA queries, they always use the standard upstream server. This is expected behavior.