-
-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Merge patch to fix for glue that is outside of zone, with
`harden-unverified-glue`, from Karthik Umashankar (Microsoft). Enabling this option protects the Unbound resolver against bad glue, that is unverified out of zone glue, by resolving them. It uses the records as last resort if there is no other working glue.
- Loading branch information
1 parent
348df52
commit 1e0cf1e
Showing
16 changed files
with
416 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,188 @@ | ||
; config options | ||
server: | ||
target-fetch-policy: "0 0 0 0 0" | ||
qname-minimisation: no | ||
minimal-responses: no | ||
do-ip6: no | ||
harden-unverified-glue: yes | ||
stub-zone: | ||
name: "." | ||
stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET. | ||
CONFIG_END | ||
|
||
SCENARIO_BEGIN Test iterative resolve with lame hints. | ||
|
||
; K.ROOT-SERVERS.NET. | ||
RANGE_BEGIN 0 100 | ||
ADDRESS 193.0.14.129 | ||
ENTRY_BEGIN | ||
MATCH opcode qtype qname | ||
ADJUST copy_id | ||
REPLY QR RA NOERROR | ||
SECTION QUESTION | ||
. IN NS | ||
SECTION ANSWER | ||
. IN NS K.ROOT-SERVERS.NET. | ||
SECTION ADDITIONAL | ||
K.ROOT-SERVERS.NET. IN A 193.0.14.129 | ||
ENTRY_END | ||
|
||
ENTRY_BEGIN | ||
MATCH opcode qtype qname | ||
ADJUST copy_id | ||
REPLY QR RA NOERROR | ||
SECTION QUESTION | ||
a.gtld-servers.net. IN A | ||
SECTION AUTHORITY | ||
net. IN NS a.gtld-servers.net. | ||
SECTION ADDITIONAL | ||
a.gtld-servers.net. IN A 192.5.6.30 | ||
ENTRY_END | ||
|
||
ENTRY_BEGIN | ||
MATCH opcode qtype qname | ||
ADJUST copy_id | ||
REPLY QR RA NOERROR | ||
SECTION QUESTION | ||
www.example.com. IN A | ||
SECTION AUTHORITY | ||
com. IN NS a.gtld-servers.net. | ||
SECTION ADDITIONAL | ||
a.gtld-servers.net. IN A 192.5.6.30 | ||
ENTRY_END | ||
RANGE_END | ||
|
||
; a.gtld-servers.net. | ||
RANGE_BEGIN 0 100 | ||
ADDRESS 192.5.6.30 | ||
|
||
ENTRY_BEGIN | ||
MATCH opcode qtype qname | ||
ADJUST copy_id | ||
REPLY QR NOERROR | ||
SECTION QUESTION | ||
a.gtld-servers.net. IN A | ||
SECTION ANSWER | ||
a.gtld-servers.net. IN A 192.5.6.30 | ||
SECTION AUTHORITY | ||
net. IN NS a.gtld-servers.net. | ||
SECTION ADDITIONAL | ||
a.gtld-servers.net. IN A 192.5.6.30 | ||
ENTRY_END | ||
|
||
ENTRY_BEGIN | ||
MATCH opcode qtype qname | ||
ADJUST copy_id | ||
REPLY QR NOERROR | ||
SECTION QUESTION | ||
www.example.com. IN A | ||
SECTION AUTHORITY | ||
example.com. IN NS ns1.examplesibling.com. | ||
SECTION ADDITIONAL | ||
ns1.examplesibling.com. IN A 1.2.3.4 | ||
ENTRY_END | ||
|
||
ENTRY_BEGIN | ||
MATCH opcode qtype qname | ||
ADJUST copy_id | ||
REPLY QR NOERROR | ||
SECTION QUESTION | ||
com. IN NS | ||
SECTION ANSWER | ||
com. IN NS a.gtld-servers.net. | ||
SECTION ADDITIONAL | ||
a.gtld-servers.net. IN A 192.5.6.30 | ||
ENTRY_END | ||
|
||
ENTRY_BEGIN | ||
MATCH opcode qtype qname | ||
ADJUST copy_id | ||
REPLY QR NOERROR | ||
SECTION QUESTION | ||
ns1.examplesibling.com. IN A | ||
SECTION ANSWER | ||
ns1.examplesibling.com. IN A 1.2.3.5 | ||
ENTRY_END | ||
RANGE_END | ||
|
||
; stale ns1.examplesibling.com. | ||
RANGE_BEGIN 0 100 | ||
ADDRESS 1.2.3.4 | ||
ENTRY_BEGIN | ||
MATCH opcode qtype qname | ||
ADJUST copy_id | ||
REPLY QR NOERROR | ||
SECTION QUESTION | ||
example.com. IN NS | ||
SECTION ANSWER | ||
example.com. IN NS ns1.examplesibling.com. | ||
SECTION ADDITIONAL | ||
ns1.examplesibling.com. IN A 1.2.3.5 | ||
ENTRY_END | ||
|
||
ENTRY_BEGIN | ||
MATCH opcode qtype qname | ||
ADJUST copy_id | ||
REPLY QR NOERROR | ||
SECTION QUESTION | ||
www.example.com. IN A | ||
SECTION ANSWER | ||
www.example.com. IN A 10.20.30.40 | ||
SECTION AUTHORITY | ||
example.com. IN NS ns1.examplesibling.com. | ||
SECTION ADDITIONAL | ||
ns1.examplesibling.com. IN A 1.2.3.5 | ||
ENTRY_END | ||
RANGE_END | ||
|
||
; actual ns1.examplesibling.com. | ||
RANGE_BEGIN 0 100 | ||
ADDRESS 1.2.3.5 | ||
ENTRY_BEGIN | ||
MATCH opcode qtype qname | ||
ADJUST copy_id | ||
REPLY QR NOERROR | ||
SECTION QUESTION | ||
example.com. IN NS | ||
SECTION ANSWER | ||
example.com. IN NS ns1.examplesibling.com. | ||
SECTION ADDITIONAL | ||
ns1.examplesibling.com. IN A 1.2.3.5 | ||
ENTRY_END | ||
|
||
ENTRY_BEGIN | ||
MATCH opcode qtype qname | ||
ADJUST copy_id | ||
REPLY QR NOERROR | ||
SECTION QUESTION | ||
www.example.com. IN A | ||
SECTION ANSWER | ||
www.example.com. IN A 10.20.30.50 | ||
SECTION AUTHORITY | ||
example.com. IN NS ns1.examplesibling.com. | ||
SECTION ADDITIONAL | ||
ns1.examplesibling.com. IN A 1.2.3.5 | ||
ENTRY_END | ||
RANGE_END | ||
|
||
STEP 1 QUERY | ||
ENTRY_BEGIN | ||
REPLY RD | ||
SECTION QUESTION | ||
www.example.com. IN A | ||
ENTRY_END | ||
|
||
; recursion happens here. | ||
STEP 10 CHECK_ANSWER | ||
ENTRY_BEGIN | ||
MATCH all | ||
REPLY QR RD RA NOERROR | ||
SECTION QUESTION | ||
www.example.com. IN A | ||
SECTION ANSWER | ||
www.example.com. IN A 10.20.30.50 | ||
SECTION AUTHORITY | ||
example.com. IN NS ns1.examplesibling.com. | ||
ENTRY_END | ||
|
||
SCENARIO_END |
Oops, something went wrong.