uptime-kuma: [dns] query A fails
๐ Reproduction steps
Setup a DNS Monitor using the default CloudFlare Resolver Server of 1.1.1.1
๐ Expected behavior
Monitor shouldnโt trigger as DOWN regularly when the actual domainโs DNS is resolving just fine.
To better diagnose the underlying problem I setup a nearly identical UK DNS monitor using Google DNS (8.8.8.8/8.8.4.4), and no UK incidents have been experienced seen since! The other added bonus - Google DNS seems to support โANY/ALLโ DNS queries whereas CloudFlare does not, meaning we have a way to gather most of the DNS record types for the domain.
๐ Actual Behavior
UK frequently detects the domainโs DNS A record as DOWN with the message:
queryA ESERVFAIL domain.com
We have many A Record DNS Monitors in place for multiple domain names; experienced this across all of them.
๐ป Uptime-Kuma version
1.9.1
๐ป Operating System
Ubuntu 20.04
๐ Browser
Any
๐ Docker
N/A
๐ท๏ธ Docker Image Tag
N/A
๐ฉ NodeJS Version
14.8.1
๐ Relevant log output
Up 2021-10-31 01:16:24 Records: 123.123.123.123
Down 2021-10-31 01:15:01 queryA ESERVFAIL domain.com
Up 2021-10-30 19:24:56 Records: 123.123.123.123
Down 2021-10-30 19:23:32 queryA ESERVFAIL domain.com
Up 2021-10-30 15:42:27 Records: 123.123.123.123
Down 2021-10-30 15:41:04 queryA ESERVFAIL domain.com
Up 2021-10-30 12:49:59 Records: 123.123.123.123
Down 2021-10-30 12:48:35 queryA ESERVFAIL domain.com
โ ๏ธ Please verify that this bug has NOT been raised before.
- I checked and didnโt find similar issue
๐ก๏ธ Security Policy
- I agree to have read this project Security Policy
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 30 (12 by maintainers)
Cacheable-lookup is not working properly in some cases. With 1.19.x, DNS cache now could be disabled in Settings.
I donโt think so, because under same agent options, http agent is reusable. HTTP agent is not specified for only one domain.
You can see the example in https://github.com/szmarczak/cacheable-lookup#attaching-cacheablelookup-to-an-agent
And so far, I do not receive large amount of similar bug reports, so I assumed that it should be very specific issues like @ljurk said, he is using Windows DNS Server
I had a few other monitors one like this that started failing w/ the
queryA ESERVFAILand left the server rebooted. I left them and after 1 day they went away. There must be some other cache/matching that happens elsewhere causing it for meโฆ I did reset the server dns cache (which is also probably what happened when the server rebooted).I started getting this after release 18. The only change in the monitor code was the dns cache. Iโm using an internal DNS with a ton of monitors, but only three specific monitors for Apache solr are failing. Other sites monitored on the same server resolve properly.
Wonder if it is because of the port or something? The failing urls are like
http://server:8983/solr/and passing urls are likehttp://dns-on-same-server.I tried adding the server name to the host file but no luck.
Any other ideas?
https://github.com/louislam/uptime-kuma/commit/2073f0c28476bb46fb953ecefb9622273e8819d9