uptime-kuma icon indicating copy to clipboard operation
uptime-kuma copied to clipboard

Specify what DNS resolver is being used

Open abrondijk opened this issue 2 years ago • 3 comments

⚠️ Please verify that this feature request has NOT been suggested before.

  • [X] I checked and didn't find similar feature request

🏷️ Feature Request Type

UI Feature

🔖 Feature description

You should add a field to allow for custom DNS resolvers to be used, for monitors that monitor a hostname rather than an IP.

✔️ Solution

image

An extra field under the advanced section, that defaults to the global DNS server of the container/installation.

❓ Alternatives

No response

📝 Additional Context

This would allow uptime-kuma to monitor whether services are accessible/performing as they should be in different networks.

An example: a service hosted in the same network as uptime-kuma, might have a local DNS entry point to the local IP address, while it might also have a public DNS entry pointing to the public IP. The service might work perfectly fine inside the local network, while it may not be publicly accessible.

abrondijk avatar Feb 14 '22 10:02 abrondijk

+1 That's my scenario as well. I have a server that's exposed to the outside with dyndns and another one running behind a NAT with Traefik and wildcard Let's encrypt certificates, thus mapped to a public domain. The containers have no exposed ports anymore. For my few local computers I have just host file entries. Would be good to have uptime-kuma bend to a local DNS server for certain services or just have a certain IP given to map the domain to.

lebochequirit avatar Feb 14 '22 21:02 lebochequirit

+1 Also, exactly my scenario.

Currently the only way to achieve this is to run two different Uptime instances and specifying different /etc/resolv.conf files.

webartifex avatar Mar 19 '22 15:03 webartifex

I have the same situation as well. It seems like it can be easily done with code like this packages - https://www.npmjs.com/package/axios-with-dns

I have a public website that is also available on the intranet where uptime kuma is installed... but only want to monitor from a pubic dns lookup.

christopherpickering avatar Jul 18 '22 12:07 christopherpickering

This would also make it easier to monitor that a given DNS server is actually up. I run 2 piholes and want to know if one of them is not serving traffic

unixorn avatar Feb 04 '23 14:02 unixorn

+1!

One of my PiHoles has Uptime Kuma on the same machine and floods PiHole with all the ping requests. Changing the DNS service of Uptime Kuma would be the 100% perfect solution to solve this problem. And apparently others would like it too.

XHyperDEVX avatar Mar 07 '23 16:03 XHyperDEVX