]> git.saurik.com Git - apple/network_cmds.git/blame_incremental - unbound/testdata/iter_scrub_ns_fwd.rpl
network_cmds-596.100.2.tar.gz
[apple/network_cmds.git] / unbound / testdata / iter_scrub_ns_fwd.rpl
... / ...
CommitLineData
1; config options
2server:
3 target-fetch-policy: "0 0 0 0 0"
4
5stub-zone:
6 name: "."
7 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
8
9forward-zone:
10 name: "example.com"
11 forward-addr: 1.2.3.4
12CONFIG_END
13
14SCENARIO_BEGIN Test scrubber to scrub NS record for lamelike reply from fwd
15
16; K.ROOT-SERVERS.NET.
17RANGE_BEGIN 0 100
18 ADDRESS 193.0.14.129
19ENTRY_BEGIN
20MATCH opcode qtype qname
21ADJUST copy_id
22REPLY QR NOERROR
23SECTION QUESTION
24. IN NS
25SECTION ANSWER
26. IN NS K.ROOT-SERVERS.NET.
27SECTION ADDITIONAL
28K.ROOT-SERVERS.NET. IN A 193.0.14.129
29ENTRY_END
30RANGE_END
31
32; ns.example.com.
33RANGE_BEGIN 0 100
34 ADDRESS 1.2.3.4
35ENTRY_BEGIN
36MATCH opcode qtype qname
37ADJUST copy_id
38REPLY RD RA QR NOERROR
39SECTION QUESTION
40www.example.com. IN A
41SECTION ANSWER
42; must be scrubbed
43www.burritolovers.com. IN A 10.20.30.40
44SECTION AUTHORITY
45example1234.com. IN NS ns.example.com.
46SECTION ADDITIONAL
47ns.example.com. IN A 1.2.3.4
48ENTRY_END
49
50ENTRY_BEGIN
51MATCH opcode qtype qname
52ADJUST copy_id
53REPLY RD RA QR NOERROR
54SECTION QUESTION
55mail.example.com. IN A
56SECTION ANSWER
57SECTION AUTHORITY
58; LAME
59com. IN NS ns.example.com.
60SECTION ADDITIONAL
61ns.example.com. IN A 1.2.3.4
62ENTRY_END
63
64RANGE_END
65
66STEP 1 QUERY
67ENTRY_BEGIN
68REPLY RD
69SECTION QUESTION
70www.example.com. IN A
71ENTRY_END
72
73; recursion happens here.
74STEP 10 CHECK_ANSWER
75ENTRY_BEGIN
76MATCH all
77REPLY QR RD RA NOERROR
78SECTION QUESTION
79www.example.com. IN A
80SECTION ANSWER
81SECTION AUTHORITY
82SECTION ADDITIONAL
83ENTRY_END
84
85STEP 20 QUERY
86ENTRY_BEGIN
87REPLY RD
88SECTION QUESTION
89mail.example.com. IN A
90ENTRY_END
91
92STEP 30 CHECK_ANSWER
93ENTRY_BEGIN
94MATCH all
95REPLY QR RD RA SERVFAIL
96SECTION QUESTION
97mail.example.com. IN A
98SECTION ANSWER
99SECTION AUTHORITY
100SECTION ADDITIONAL
101ENTRY_END
102
103SCENARIO_END