Periodic Query Spikes and Cache Bypass in dnscrypt-proxy with DoH Server #2790
Replies: 3 comments 6 replies
-
(We?) Looks like even Cloudflare DNS is having trouble resolving the name of that DoH server. Check the configuration of the authoritative DNS server for that domain, and that the bootstrap servers are not firewalled. Or, in order to not have to resolve the name, include the IP addresses in the stamp or use DNSCrypt. |
Beta Was this translation helpful? Give feedback.
-
Same config, except, of course, different DoH server. Same problem:
But, every 4 hours (except every third 4-hour, i.e. except the error every 12 hours) since the moment dnscrypt-proxy started there are brief successful messages like:
|
Beta Was this translation helpful? Give feedback.
-
It is dnscrypt-proxy/dnscrypt-proxy/example-dnscrypt-proxy.toml Lines 193 to 195 in 5d2519e dnscrypt-proxy/dnscrypt-proxy/example-dnscrypt-proxy.toml Lines 150 to 160 in 5d2519e
The above is not cache bypass. It is the connection delays for dnscrypt-proxy to servers. A DoH sdns stamp without IP shipped requires host name to be resolved. And it uses a standalone cache which is not controled by the config. Valid cache items for clients should follow: dnscrypt-proxy/dnscrypt-proxy/example-dnscrypt-proxy.toml Lines 408 to 439 in 5d2519e
It is a special value. Checked the source code. Still no clue what happened.
Good start. Your OS and its settings? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
We are currently using dnscrypt-proxy version 2.1.7 with a custom DoH (DNS-over-HTTPS) server powered by CoreDNS . The configuration file in txt ([dnscrypt-proxy.txt]) dnscrypt-proxy.txt is attached for reference.
Every 12 hours, we observe a significant spike in the number of queries being sent to our DoH server. A screenshot of the query pattern is also attached for clarity.

We increased max_clinets from 250 to 10k but we have an issue
[WARNING] Too many incoming connections (max=10000)
Dnscypt-proxy is trying to resolve DNS (doh.****.com) of our DOH server.
Despite enabling caching in dnscrypt-proxy, the queries seem to bypass the cache entirely.
We suspect there might be an issue with the configuration or behavior of dnscrypt-proxy, but we are unable to pinpoint the root cause. Could you help us identify and resolve this issue?
Beta Was this translation helpful? Give feedback.
All reactions