AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

Private Reverse DNS not working correctly

Open vordenken opened this issue 1 year ago • 3 comments

Prerequisites

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: Image

Lookup for "_dns-push-tls._tcp.ipv4only.arpa" forwarded to my upstream DNS instead of private DNS resulting in NXDOMAIN: Image

Lookup for "134.178.168.192.in-addr.arpa" correctly forwarded to my private DNS: Image

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): Image

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.

vordenken avatar Feb 24 '25 10:02 vordenken

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":

Image

orosseel avatar Mar 09 '25 22:03 orosseel

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.

Sil3ntVip3r avatar Aug 05 '26 01:08 Sil3ntVip3r

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.

sofvaskina avatar Sep 01 '26 10:09 sofvaskina