-
Notifications
You must be signed in to change notification settings - Fork 890
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dnsdist, auth, rec: EDNS COOKIE option busts packet cache? #5131
Comments
Hi! You are right, the packet cache currently hashes the whole query so a query with a cookie will almost never match an existing entry. We should skip the actual cookie content while hashing the query, but I haven't gotten around to it. |
Auth (as of 4.1.0-RC1) has the same issue in the packetcache. |
As a datapoint, we received a report from an authoritative users of dnsdist that the cache hitrate is going down because of more and more EDNS cookies coming in. |
It would be nice to get a fix for this. |
Any updates on this? I don't noticed any improvement in 1.4.0 on this? |
No, the packet cache in 1.4.0 is still hashing the whole query. |
Hi,
I noticed that with a packet cache enabled:
When I queried this dnsdist server with dig 9.11, the result was always a cache miss, unless I specified
+nocookie
to dig. It looks like dnsdist doesn't support the EDNS COOKIE option, so a query with a COOKIE will always bust the packet cache.This is with the dnsdist Debian package version 1.1.0-2.
The text was updated successfully, but these errors were encountered: