I’ve been encountering a strange issue within the DNS logs.
Every morning, without fail, between 9:00 AM and 10:30 AM, my domain experiences an unusually high spike in NXDOMAIN requests. This has become a daily occurrence, and I’m struggling to find it’s origin.
During these times the website gets slower and occasionally presents 522 errors.
I’ve spoken to my server providers and they said they can’t do much to help as we are using Cloudflare and the DNS query logs are only available within the highest CF pricing package which I am not wanting to purchase.
Are these seen in the DNS analytics? Or reported from your browser when you try to reach your site.
If in the analytics they will be requests for DNS records that you haven’t set. How many such requests are there? If a significant number (can you show a screenshot?), this, combined with your origin server timing out (522 error) could indicate some form of DoS attack that’s overloading your origin (although strange to always be at the same time). Do you see a spike in traffic during those times? The NXDOMAIN errors won’t directly affect your origin since, by definition, they are requests that can’t reach it.
What is the domain?
You can try to find out what those DNS requests are by setting a wildcard DNS record so they resolve, but you’ll need to point that somewhere other than your origin if that’s going down during that time as you don’t want to send it any more requests. If you set it to be proxied perhaps use a Cloudflare worker to log them and write to R2 or something, or use another server, or use the WAF to block any subdomains you don’t use so such requests appear in the security log.
Nicely done. It will be interesting to see what you find.
(My assumption was of course that these DNS queries will result in HTTP requests, rather than some other protocol which won’t hit the worker - but at least you’ll know).