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

Monitor encrypted DNS (DOH and DOT)

Open yurividal opened this issue 2 years ago • 4 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

New Monitor

🔖 Feature description

I would like to be able to monitor DNS-Over-TLS and DNS-Over-HTTPS. Both are encrypted forms of DNS. I have a dns server that only responds to encrypted queries and I would like to monitor if it's up.

✔️ Solution

Add a DOT and DOH field to the DNS monitor.

❓ Alternatives

Theoretically I can monitor the ports, but that's not enough as the service could be intermitent

📝 Additional Context

No

yurividal avatar Feb 13 '23 05:02 yurividal

+1

StefanescuCristian avatar Jun 27 '23 17:06 StefanescuCristian

@StefanescuCristian Please refrain from posting +1 / requests for updates things on issues, as this makes issue-management harder. Issues are for discussing what needs to be done how by whom. We use 👍🏻 on issues to prioritise work. PRs are always welcome for bugfixes like this

CommanderStorm avatar Jun 27 '23 18:06 CommanderStorm

👍

StefanescuCristian avatar Jun 27 '23 18:06 StefanescuCristian

DoH at least should be possible. If I am not mistaken, the dns2 module is used by the dnsResolve function here: https://github.com/louislam/uptime-kuma/blob/538f83205d75fdfc437bece61764e864ae90a5b0/server/util-server.js#L292-L293

And this module has baked-in DoH support. Here is the example code: https://github.com/song940/node-dns/blob/master/example/client/doh.js

I might try to tackle this and make a PR sometime later if I get the time to brush up on nodejs, but no promises.

ekrekeler avatar Jan 26 '24 06:01 ekrekeler

This would be nice to have.

Iliannnn avatar Jun 15 '24 07:06 Iliannnn

The DNS monitor is currently quite barebones and not really useful. If someone wants to improve upon this, our contribution guide can be found here https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md

CommanderStorm avatar Jun 15 '24 11:06 CommanderStorm

I'd love to have a way to monitor my Adguard Home DNS and see if it's still connectable.

Iliannnn avatar Jun 15 '24 14:06 Iliannnn