-
Notifications
You must be signed in to change notification settings - Fork 914
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
SetEDNSOption does not work as expected with dnssec enabled #11728
Comments
Can you tcpdump traffic between your dnsdist and OpenDNS? |
Also, some of your digs went to the wrong IP - |
I have updated the issue with current outputs. I will take a tcpdump of it as well. |
Please find the tcpdump ( @rgacogne: Since you have already added a |
I'm not, no. I have added the label because based on your description it really looks like a bug, but I won't know for sure until I have reproduced it which will likely have to wait until tomorrow. |
It was easier than I expected so I just opened a pull request (#11729) that fixes this issue in my test. If by any chance you could test it (which involves recompiling, sorry), that would be great :) |
Wow! Thanks for looking into it and fixing it faster than I could even look for an update of the issue 😊 Not directly related to this issue, but maybe you have an idea first spot so I mention it: When we were troubleshooting the issue we had pdns-rec as backend. We enabled tracing but didn't see a single log line regarding the query. Only in tcpdump we were able to spot it. So maybe there is an issue in pdns-rec as well, when such "malformed" packets arrive? |
Sorry, we had some trouble setting up a appropriate build environment. I can confirm your commit fixes the issue:
✅ Expected A-record is returned Thanks for looking into it this quickly! |
Thanks a lot for testing and reporting back! I'll add the missing unit and regression tests to the pull request quickly, then after a review it will be merged into the development branch, and I'll then backport it to the 1.7.x branch. |
Thanks for the "next steps"-explanation! I am not sure if this is even supposed to work but I found that Should I open another issue or is this expected? Sample configuration
Query foo.tld
✅ EDNS option gets added
Query bar.tld
❌ No EDNS option is added
|
|
Short description
When using
SetEDNSOptionAction
questions with dnssec (dig +dnssec
) the DNS answer is empty and the status isBADVERS
Environment
Sample configuration
Steps to reproduce
1.) Query
test.com
without dnssecdig @127.0.0.20 test.com A +nodnssec
✅ Expected A-record is returned
2.) Query
test.com
with dnssecdig @127.0.0.20 test.com A +dnssec
❌ No data is returned and status is
BADVERS
Verification
1.) Query some other domain without dnssec
dig @127.0.0.20 dnsdist.org A +nodnssec
2.) Query the same domain with dnssec
dig @127.0.0.20 dnsdist.org A +dnssec
✅ Expected A-record is returned with and without dnssec
Expected behaviour
Both queries regardless of the dnssec option should work when
SetEDNSOption
is usedActual behaviour
As seen above the question is not answered correctly.
The text was updated successfully, but these errors were encountered: