AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

AdGuard can't connect to private reverse DNS servers that is my router

Open k-matti opened this issue 1 year ago • 15 comments

Prerequisites

Platform (OS and CPU architecture)

Linux, ARM64

Installation

Docker

Setup

On one machine

AdGuard Home version

v0.107.55

Action

I am trying to set up "Private reverse DNS servers" as my router option, but Test upstreams button gets me an error:

Image Image

Error from adguard docker logs:

ERROR response received addr=192.168.0.1:53 proto=udp status="exchanging with 192.168.0.1:53 over udp: read udp 192.168.1.110:57546->192.168.0.1:53: i/o timeout"
2025/01/22 12:00:59.597353 [error] dnsproxy: exchange failed upstream=192.168.0.1:53 question=";b._dns-sd._udp.0.0.168.192.in-addr.arpa.\tIN\t PTR" duration=2.000459004s err="exchanging with 192.168.0.1:53 over udp: read udp 192.168.1.110:57546->192.168.0.1:53: i/o timeout"

Expected result

No error when setup private upstream server

Actual result

Error when setup private upstream server

Additional information and/or screenshots

No response

k-matti avatar Jan 22 '25 12:01 k-matti

You are trying to get Adguard Home to use your router as a private reverse DNS? What is your router? Not all routers support this option. For example, TP-Link Deco does not.

he-pennypacker avatar Jan 28 '25 10:01 he-pennypacker

My router is UBIQUITI ER-X. I have a second Adguard with 192.168.0.110 IP and there is no error when I use my router IP (192.168.0.1). The problem I have with the Adguard with 192.168.1.110 IP, error as above when using the router IP.

k-matti avatar Jan 28 '25 10:01 k-matti

Is the 192.168.0.1 (router) address routable from 192.168.1.110 (Adguard 2)? If you're running Adguard on Docker you can connect to the docker shell and ping 192.168.0.1 to see.

Edit: the last part of your log suggests it's not - 192.168.1.110:57546->192.168.0.1:53: i/o timeout

he-pennypacker avatar Jan 28 '25 10:01 he-pennypacker

Image Yes, I can ping router from 192.168.1.110 also blocking works fine for both AdGuard main on 192.168.0.110 and backup on 192.168.1.110

k-matti avatar Jan 28 '25 10:01 k-matti

Hmmm, the last thing I can suggest is two items from this post: https://github.com/AdguardTeam/AdGuardHome/discussions/6928

  1. Second last post - host file messiness on the Unifi gateway
  2. Last post - resolve_clients: true option in AdGuardHome.yaml

Good luck!

he-pennypacker avatar Jan 28 '25 11:01 he-pennypacker

Hello I'm troubleshooting a similar problem with my clients resolving and noticed that resolve_clients: true option in AdGuardHome.yaml doesn't exist at all, even though the box is checked in the UI.

To confirm this, I first looked for the setting and found it documented here: https://github.com/AdguardTeam/Adguardhome/wiki/Configuration#client-lookups

Then I performed these tests:

  • I went into the UI and unchecked the box, saved. Result: nothing in the yaml file, no resolve_clients option either true or false.
  • I went into the UI and checked the box, saved. Result: nothing in the yaml file, no resolve_clients option either true or false.
  • Manually edited the yaml file and added resolve_clients: true, restarted AGH. Result: the resolve_clients: true line I added was removed by AGH on startup. Again the option doesn't exist in the file right after restarting.
  • I installed Docker Desktop on a fresh Windows 11 machine, ran AGH latest and the option doesn't exist in the file on startup, but the box is checked in the UI.

Not sure if these tests are conclusive but I think there might be a problem with this configuration option.

EDIT: The option for the resolve_clients seems to be missing from this source file in AGH: https://github.com/AdguardTeam/AdGuardHome/blob/d3dea0f46cda81dadf9cc597969f459e016368b8/internal/home/config.go#L218-L242. Looks like a bug OR possibly an unfinished "TODO".

mcarver avatar Jan 31 '25 01:01 mcarver

Gonna tag a few folks who have commits around the area for feedback/input. @EugeneOne1 @Mizzick and @schzhn.

mcarver avatar Jan 31 '25 16:01 mcarver

@k-matti, ping uses ICMP, not UDP. Have you tried actually accessing the DNS server from the machine running AGH? That is:

dig @192.168.0.1 'example.com'

@mcarver, same thing. Please make sure that the address actually serves DNS on the address you're trying to use. There should be no need for any manual config editing for this to work.

ainar-g avatar Jan 31 '25 16:01 ainar-g

@ainar-g was the resolve_clients setting removed or deprecated? It never exists in the YAML file, no matter what you do in the UI. If you add it to the YAML file, it is removed when AGH starts.

EDIT: I'm using the latest Docker image and the UI shows AGH v0.107.56.

mcarver avatar Jan 31 '25 16:01 mcarver

It was moved over two years ago, see https://github.com/AdguardTeam/AdGuardHome/blob/d3dea0f46cda81dadf9cc597969f459e016368b8/CHANGELOG.md#configuration-changes-10. The documentation on that page seems outdated, and I'll fix that. Thanks for reporting!

ainar-g avatar Jan 31 '25 16:01 ainar-g

@ainar-g makes sense to me. Thank you!

mcarver avatar Feb 01 '25 12:02 mcarver

Hello @k-matti, could you please let me know if this issue is still relevant?

sofvaskina avatar Jul 16 '26 13:07 sofvaskina

Hello @sofvaskina

Yes I still can see a lot errors in log:

`2026/07/30 06:01:42.164531 [error] dnsproxy: response received upstream_type=local addr=192.168.0.1:53 proto=udp status="exchanging with 192.168.0.1:53 over udp: read udp 172.21.0.5:57234->192.168.0.1:53: i/o timeout"

2026/07/30 06:01:42.165825 [error] dnsproxy: response received upstream_type=local addr=192.168.0.1:53 proto=udp status="exchanging with 192.168.0.1:53 over udp: read udp 172.21.0.5:42155->192.168.0.1:53: i/o timeout"

2026/07/30 07:17:26.627421 [error] dnsproxy: response received upstream_type=local addr=192.168.0.1:53 proto=udp status="exchanging with 192.168.0.1:53 over udp: read udp 172.21.0.5:38752->192.168.0.1:53: i/o timeout"

2026/07/30 07:17:26.629649 [error] dnsproxy: response received upstream_type=local addr=192.168.0.1:53 proto=udp status="exchanging with 192.168.0.1:53 over udp: read udp 172.21.0.5:59868->192.168.0.1:53: i/o timeout"

2026/07/30 08:35:26.590354 [error] dnsproxy: response received upstream_type=local addr=192.168.0.1:53 proto=udp status="exchanging with 192.168.0.1:53 over udp: read udp 172.21.0.5:34208->192.168.0.1:53: i/o timeout"

2026/07/30 08:35:26.591592 [error] dnsproxy: response received upstream_type=local addr=192.168.0.1:53 proto=udp status="exchanging with 192.168.0.1:53 over udp: read udp 172.21.0.5:51404->192.168.0.1:53: i/o timeout"`

k-matti avatar Jul 30 '26 10:07 k-matti

@k-matti This issue was opened in 2025, and the description lists v0.107.55, but a lot of time has passed since then. Could you tell me which version you're using?

sofvaskina avatar Aug 04 '26 08:08 sofvaskina

No response was received. I'm closing this issue for now. If the issue becomes relevant again, please reopen it.

sofvaskina avatar Aug 24 '26 13:08 sofvaskina