mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-03-02 22:57:00 -05:00
DNS monitor not working when running on same host as Adguard Home DNS Server #1740
Labels
No labels
A:accessibility
A:api
A:cert-expiry
A:core
A:dashboard
A:deployment
A:documentation
A:domain expiry
A:incidents
A:maintenance
A:metrics
A:monitor
A:notifications
A:reports
A:settings
A:status-page
A:ui/ux
A:user-management
Stale
ai-slop
blocked
blocked-upstream
bug
cannot-reproduce
dependencies
discussion
duplicate
feature-request
feature-request
good first issue
hacktoberfest
help
help wanted
house keeping
invalid
invalid-format
invalid-format
question
releaseblocker 🚨
security
spam
type:enhance-existing
type:new
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/uptime-kuma#1740
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jschwalbe on GitHub (Jan 5, 2023).
⚠️ Please verify that this bug has NOT been raised before.
🛡️ Security Policy
Description
My home setup is as follows: the main IP of the server running my AdGuard DNS server & Uptime-Kuma is 192.168.1.81. If I add a DNS monitor with that same IP address, I get the error above. Changing the server to 1.1.1.1 or 8.8.8.8 works correctly, immediately. I also have a cloned AdGuard server on a different machine. Switching the IP to that machine, 192.168.1.100, works fine.
When I run a shell from the docker, I am able to ping the above IP. (The shell doesn't seem to have nslookup or dig, so I cannot try connecting to the server as far as I can tell.)
Is it a docker thing that I've set up incorrectly? I'm not great with networking within docker, so I wouldn't be too surprised.
👟 Reproduction steps
Set up Uptime-Kuma within docker.
Set up an AdGuard server on the same host, within docker.
Set up w/ a DNS monitor to monitor google.com, with server as the same IP that the server is running both AdGuard & Uptime-Kuma (in my case 192.168.1.81).
Load AdGuard and watch the requests coming in appropriately.
👀 Expected behavior
It should show me when DNS resolves and when it doesn't.
(My goal is to know if AdGuard fails for some reason.)
😓 Actual Behavior
It does not work.
🐻 Uptime-Kuma Version
1.19.2
💻 Operating System and Arch
Debian 4.19.269-1 (2022-12-20) x86_64 GNU/Linux
🌐 Browser
Edge
🐋 Docker Version
No response
🟩 NodeJS Version
No response
📝 Relevant log output
@louislam commented on GitHub (Jan 6, 2023):
As 1.1.1.1 is working, I believe it is a network issue on your side. Please see wiki > troubleshooting.
@jschwalbe commented on GitHub (Jan 7, 2023):
Thanks for the ideas. Ended up having to remove the 192.168.* address and instead put in 172.100.0.2. Also put them both on the
bridgenetwork. Not sure why I couldn't use 192.168.* though. Appreciate the help!@Danie10 commented on GitHub (Aug 25, 2024):
@jschwalbe think I solved the IP address issue for 192.168.*. I specified AdGuardHome to join the host network, and that made the DNS test work to the host IP address. Added the following in the docker-compose for the AdGuardHome service: