-
Notifications
You must be signed in to change notification settings - Fork 34
Fix DNSSEC10 for name servers sharing the same IPs #1457
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
Conversation
…haring the same IPs Fixes zonemaster#1454
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When testing the scenarios with this PR installed, the new scenarios pass, but is it correct?
$ zonemaster-cli --show-testcase --level INFO --test dnssec10 --hints ../../COMMON/hintfile --raw GOOD-NSEC-2.dnssec10.xa
0.00 INFO Unspecified GLOBAL_VERSION version=v7.1.0
0.07 INFO DNSSEC10 DS10_HAS_NSEC ns_list=ns1a.good-nsec-2.dnssec10.xa/127.15.10.31;ns1a.good-nsec-2.dnssec10.xa/fda1:b2:c3:0:127:15:10:31
The zone is delegated to three NS, ns1a, ns1b and ns1c, but only the first one is listed under DS10_HAS_NSEC. I expect all three to be listed.
Hmm I don't think its feasible unless we stop skipping the sending queries already queried IPs, i.e. remove line 3159: |
In the scenario the delegation has three NS with the same IP. As we have seen it can exist, but more likely is that delegation and zone use/refer to the same IP, but with different names. It is less helpful if some names are not mentioned. Wouldn't the following model work?
|
Two more scenarios have been added in zonemaster/zonemaster#1383, GOOD-NSEC-3 and GOOD-NSEC3-2. Both should output as e.g. GOOD-NSEC-1. Just as with GOOD-NSEC-2 and GOOD-NSEC3-2 there are extra names with the same IP, one name in delegation and the other in zone. |
This is a different bug compared to what this PR is to resolve. The bug in this comment will be lifted into an issue instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine.
This should now be fixed too with commit 7690d4e :
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks reasonable to me. I believe I found a slightly simplifying refactoring.
With 7690d4e I get a correct result with all NS listed. |
Co-authored-by: Mattias Päivärinta <[email protected]>
I applied Mattias's suggestions, please re-approve. |
v2025.1 Release testingFrom #1454 (comment):
|
Purpose
This PR fixes a bug in DNSSEC10 where
DS10_EXPECTED_NSEC_NSEC3_MISSING
is wrongly outputted for name servers sharing the same IPs. For this type of name servers it should now also output, for all message tags, all name servers name/IP pairs.Context
Fixes #1454
Updated test scenarios from zonemaster/zonemaster#1383
Changes
How to test this PR
Unit tests are updated and should pass.