Closed sergeysedoy97 closed 1 year ago
try iptables -F
then do a dig
. had some similar issues with http on ipv4 https://github.com/AdguardTeam/AdGuardHome/issues/4922
@ssrahul96 thank you, but there is no any problem in iptables. IMO problem in random UDP interface, thats why it's work on same machine only.
Hello and thanks for the thorough report. Some clarifications:
If you use AdGuard Home outside of the Docker container, does that fix the issue?
Are you sure that nothing else is binding to port 53? ss -l -n -u
has shown that something does, but is that AdGuard Home? What does [sudo] lsof -i :53
show?
Are there any clues in the logs? And if you configure AdGuard Home to collect verbose logs by setting verbose
to true
?
If you explicitly enumerate the IP addresses on which AGH should listen, does that fix the issue?
Thanks.
@ainar-g
root@msk:~# ss -lnup | grep 53
UNCONN 0 0 *:53 *:* users:(("adguardhome",pid=147593,fd=14))
root@msk:~# lsof -i :53 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME adguardho 147593 root 14u IPv6 759588 0t0 UDP :domain adguardho 147593 root 15u IPv6 759589 0t0 TCP :domain (LISTEN)
3. It's verbose now, no any logs of incoming request via IPv4 UDP.
4. No.
root@msk:~# ss -lnu | grep 53 UNCONN 0 0 178.20.45.32:53 0.0.0.0: UNCONN 0 0 [2a0d:8480:2:54::]:53 [::]:
❯ doggo example.com "@udp://[2a0d:8480:2:54::]" NAME TYPE CLASS TTL ADDRESS NAMESERVER example.com. A IN 86400s 93.184.216.34 [2a0d:8480:2:54::]:53
❯ doggo example.com "@udp://178.20.45.32" time="2022-10-06T15:42:48+03:00" level=error msg="error looking up DNS records" error="read udp 192.168.0.18:57180->178.20.45.32:53: i/o timeout" NAME TYPE CLASS TTL ADDRESS NAMESERVER
I honestly have no idea then. If AdGuard Home is shown listening on UDP, and it works from the same machine, then my thought would be that some kind of a firewall or a network filter is doing this.
Resolved issue, my VPS provider blocked incoming UDP 53.
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
Operating system type
Linux, Other (please mention the version in the description)
CPU architecture
AMD64
Installation
Docker
Setup
On one machine
AdGuard Home version
0.108.0-b.17
Description
What did you do?
Slice of AdGuardHome.yaml:
Let's check sysctl property:
Let's check port binding:
Let's check docker info:
I use host network for container.
Let's try to make UDP DNS request using IPv4 from same machine
Let's try to make UDP DNS request using IPv4 from diferent machine
Let's try to make UDP DNS request using IPv6 from diferent machine
Let's try to make TCP DNS request using IPv4 from diferent machine
Did you use the same interface to send DNS answer?
I think the problem is more related to https://github.com/AdguardTeam/dnsproxy, but anyway it's AGH product bug.