No internet connection after pointing router to AdGuardHome #6911
-
Prerequisites
Platform (OS and CPU architecture)Ubuntu Server 22.04.3, x86_64 InstallationDocker compose IssueAfter installing AdguardHome via docker compose, and pointing my router to use it as the DNS server, I have no DNS access at all. I can still ping ips between my machines, but that's it. The query logs in the AdguardHome admin panel are also completely blank. I tried setting this up the other day and at least there was queries in the logs (but still a broken connection). The relevant snippet of my docker compose:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I am strugglin also with this information 127.0.0.1 vcan never work because this IP is not in the range from your router. You have to enter the IP where Adguard is installed, also for example 192.168.1.105 |
Beta Was this translation helpful? Give feedback.
-
Your router setup won't work as you are telling it to use the localhost (127.0.0.1) of the router. Set the primary DNS to the IP address where your docker is running (is it 192.168.1.111 ?) and delete the entry you have for secondary DNS. I also don't like this entry in your compose.yaml, it seems unnecessary. 192.168.1.111:53:53/udp Finally, you have exposed every port from container to host, most are only needed for running specific services (e.g. DNSCrypt, DNS over QUIC etc). I would blow away your current compose.yaml and try something like this (this assumes you are only using DNS and web admin, and not using DHCP server, DNS Crypt, DNS over QUIC, or debugging profiles). Note that in this configuration, you won't see the client IP addresses in the log as the github wiki tells you - https://github.com/AdguardTeam/AdGuardHome/wiki/Docker services: Alternatively, if you want to simplify your life, you can run your adguardhome container network in host mode, like this. You will then see client IPs in the log, instead of the container IP. The drawback is that you can't adjust ports so you might have some conflicts between containers. Let us know how you go. services: |
Beta Was this translation helpful? Give feedback.
Your router setup won't work as you are telling it to use the localhost (127.0.0.1) of the router.
Set the primary DNS to the IP address where your docker is running (is it 192.168.1.111 ?) and delete the entry you have for secondary DNS.
I also don't like this entry in your compose.yaml, it seems unnecessary.
192.168.1.111:53:53/udp
Finally, you have exposed every port from container to host, most are only needed for running specific services (e.g. DNSCrypt, DNS over QUIC etc). I would blow away your current compose.yaml and try something like this (this assumes you are only using DNS and web admin, and not using DHCP server, DNS Crypt, DNS over QUIC, or debugging profiles).
Note that in…