-
Notifications
You must be signed in to change notification settings - Fork 62
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
Separate DNSSEC queries from normal queries in the cache #322
Conversation
Let's test: Config (it's a copy of my local config, I didn't have time to write one from scratch):
======================================================== Test 1:
Dig:
======================================================= Test 2: RouteDNS log:
Dig: $ dig @127.0.0.1 -p 1053 cloudflare.com
================================================== Result: Everything is OK. It's ready to merge. |
I found a problem: This branches fixes the problem only with RAM backend, with Redis cache, RouteDNS continues to not differentiate TSIG and non-TSIG queries: Config:
Result:
|
oh, nice catch. I totally missed that the keys for redis are generated differently. I just added a proposed fix to this branch (not tested at all). Would you be able to confirm if it works now. Note that this will basically invalidate the current content of the redis cache so it'll be like it's an empty cache until things are populated again. |
It was not that easy to test in my "router", but I tested:
It's ready to merge. |
Fixes #320 by including the
Do
flag in the cache-key.