louislam / uptime-kuma

A fancy self-hosted monitoring tool
https://uptime.kuma.pet
MIT License
60.65k stars 5.41k forks source link

DNS server on same system but on different container monitor not working #5040

Closed hoovad closed 3 months ago

hoovad commented 3 months ago

⚠️ Please verify that this question has NOT been raised before.

🛡️ Security Policy

📝 Describe your problem

I have a Pi-hole server and an Uptime Kuma server on the same system. I setup the pi-hole web console monitor, and it works just fine. But then, when i try to setup the DNS monitor with resolver server as 192.168.1.44 (the local IP of the server) and the hostname as www.google.com, i get the following error:

kuva

The DNS server works just fine, as i am using it right now, and the DNS server is running on port 53, as intended. Is there any way to fix this?

📝 Error Message(s) or Log

No response

🐻 Uptime-Kuma Version

1.23.13

💻 Operating System and Arch

Fedora 40 Server Edition x86_64

🌐 Browser

LibreWolf 129.0.1-1

🖥️ Deployment Environment

hoovad commented 3 months ago

I ran netshoot on the uptime kuma container, and tried to dig www.google.com via 192.168.1.44 and it turns out that it timed out trying to connect to the DNS server.

CommanderStorm commented 3 months ago

We are alerting to a real issue as you noted in your last comment.

The rest is dependent on your docker network and docker DNS configuration. Since you did not share what your configuration there is, I can't make recommendations how to fix your issue.