AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

log confusion.. non existent entry in logs.. [error] dnsproxy: exchange failed upstream

Open bcookatpcsd opened this issue 2 years ago • 2 comments

Prerequisites

Platform (OS and CPU architecture)

FreeBSD, AMD64 (aka x86_64)

Installation

GitHub releases or script from README

Setup

On one machine

AdGuard Home version

AdGuard Home, version 0.107.53

Action

Trying to work through these timeout errors in the logs..

Seems they are related to in-addr.arpa requests for IP space I do not have..

Trying to find where it is coming from..

Expected result

only in-addr.arpa requests for my internal ip space.. but there are entries in the error log not in the search log..

Actual result

2024/11/05 09:47:24.551753 ERROR response received addr=10.120.112.200:530 proto=udp status="exchanging with 10.120.112.200:530 over udp: read udp 10.120.48.254:49583->10.120.112.200:530: i/o timeout"
2024/11/05 09:47:24.551813 [error] dnsproxy: exchange failed upstream=10.120.112.200:530 question=";lb._dns-sd._udp.220.82.44.10.in-addr.arpa.\tIN\t PTR" duration=2.021707448s err="exchanging with 10.120.112.200:530 over udp: read udp 10.120.48.254:49583->10.120.112.200:530: i/o timeout"

image

Additional information and/or screenshots

As always, thank you in advance.

bcookatpcsd avatar Nov 05 '24 14:11 bcookatpcsd

lb._dns-sd._udp.<reverse-name> is a DNS-SD legacy-browsing query generated by a LAN client or service. AdGuard Home routed it to the configured private reverse-DNS upstream, which then timed out. Verbose logging or a packet capture can identify the client address that originated it.

The reason it appeared in the error log but not the query log is the upstream error path exiting before query-log and statistics processing. PR #8544 specifically addresses recording these failed requests.

Sil3ntVip3r avatar Aug 05 '26 01:08 Sil3ntVip3r

Hello. Judging by the information, you're experiencing two issues: timeouts and missing entries in the query log. Regarding the query log, this issue is already being tracked in #5826. Regarding timeouts: AGH redirects in-addr.arpa names for private IP addresses to your configured local PTR server (10.120.112.200:530), according to the log. This is what causes the timeout. This is expected behavior. If this isn't your intention, remove your local PTR servers. In this case, NXDOMAIN will be returned from regular resolvers.

sofvaskina avatar Sep 04 '26 11:09 sofvaskina