Incoming DoH queries take a long time on dnsdist 1.9 #14103
Replies: 4 comments 7 replies
-
Maybe Apache is trying to pass " |
Beta Was this translation helpful? Give feedback.
-
I just tried to reproduce the issue with:
I'm afraid I cannot reproduce the issue, I get very fast response times. I would suggest getting rid of |
Beta Was this translation helpful? Give feedback.
-
Thanks for the tips, I tried changing On 1.9 everything works appropriately with Running
It's relayed the response to me, but I don't get it. The query and relay happens again for AAAA, then I have
The sequence of query and timeout will repeat a few times, and eventually it will work. Any ideas about what could be causing TCP connections to break when using 1.9? I'm using curl/doh to test things, but I can confirm a similar slowdown when using DoH from an Ipad. Running the debug output from Are there any useful debug steps to take in dnsdist, from the console, command line, or conf file? |
Beta Was this translation helpful? Give feedback.
-
Finally had the opportunity to do some packet capturing. Here are the various logs. I ran IPs should be:
pcap file from the client client193_ANONYMIZED.pcapng.gz |
Beta Was this translation helpful? Give feedback.
-
Sorry for the length of this, the question is simple, the rest is background information.
I'm having an issue with dnsdist 1.9.x where incoming DoH queries take multiple seconds to return an answer. Incoming queries on DoT or :53 are returned immediately.
Keeping everything else the same, dnsdist works perfectly on 1.8.x, but upgrading to 1.9.x I get the slow down on incoming DoH queries. I'm on aarch64, so I'm building my own dnsdist. I see the problem whether I use
builder/build.sh
in a git clone or build from the tar file. The system has 4 cores and 24GB or ram, so I don't think it is a resource issue causing the delay. The problems happen whether the incoming query is over ipv4 or ipv6.My setup is somewhat complex, and definitely circular, but it keeps pihole from being internet facing, and the server is only listening on 443 and 853.
The whole pihole thing does not seem to matter for this issue. If I turn off pihole, so dnsdist passes queries to an upstream server and then replies back to the client, I still get the slowdown. If the query is for a blocked address (answered by pihole) or a non-blocked address (answered by an upstream server) I still get the slowdown.
I'm using Apache as a reverse proxy to accept incoming DoH connections and pass them to dnsdist.
The relevant parts of
dnsdist.conf
(lines split for readability)I didn't create this as an issue, because my setup is weird, but I still see the problem when everything except dnsdist and apache are eliminated. If any additional information will be useful to track down the problem, please let me know.
Beta Was this translation helpful? Give feedback.
All reactions