iter_hint_lame.rpl 2.94 KB
Newer Older
Marek Vavruša's avatar
Marek Vavruša committed
1
; config options
2 3
;	target-fetch-policy: "0 0 0 0 0"
;	name: "."
4
	stub-addr: 193.0.14.129 	# K.ROOT-SERVERS.NET.
5 6
	; minimization does not affect priming query
	query-minimization: off
Marek Vavruša's avatar
Marek Vavruša committed
7 8
CONFIG_END

9
SCENARIO_BEGIN Test iterative resolve with lame hints (RA flag on but no AA flag)
Marek Vavruša's avatar
Marek Vavruša committed
10 11 12

; K.ROOT-SERVERS.NET.
RANGE_BEGIN 0 100
13
	ADDRESS 193.0.14.129
Marek Vavruša's avatar
Marek Vavruša committed
14 15 16
ENTRY_BEGIN
MATCH opcode qtype qname
ADJUST copy_id
17
; flags are intentionally weird: it should have AA instead of RA
Marek Vavruša's avatar
Marek Vavruša committed
18 19 20 21 22 23
REPLY QR RA NOERROR
SECTION QUESTION
. IN NS
SECTION ANSWER
. IN NS	K.ROOT-SERVERS.NET.
SECTION ADDITIONAL
24
K.ROOT-SERVERS.NET.	IN	A	193.0.14.129
Marek Vavruša's avatar
Marek Vavruša committed
25 26 27 28 29 30 31
ENTRY_END

ENTRY_BEGIN
MATCH opcode qtype qname
ADJUST copy_id
REPLY QR RA NOERROR
SECTION QUESTION
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
K.ROOT-SERVERS.NET. IN A
SECTION ANSWER
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
K.ROOT-SERVERS.NET. IN AAAA
SECTION AUTHORITY
. IN SOA . . 0 0 0 0 0
ENTRY_END

ENTRY_BEGIN
MATCH opcode qtype qname
ADJUST copy_id
REPLY QR RA NOERROR
SECTION QUESTION
a.gtld-servers.net. IN A
SECTION ANSWER
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
a.gtld-servers.net. IN AAAA
SECTION AUTHORITY
. IN SOA . . 0 0 0 0 0
ENTRY_END

ENTRY_BEGIN
MATCH opcode subdomain
ADJUST copy_id copy_query
REPLY QR RA NOERROR
SECTION QUESTION
com. IN A
Marek Vavruša's avatar
Marek Vavruša committed
73 74 75
SECTION AUTHORITY
com.	IN NS	a.gtld-servers.net.
SECTION ADDITIONAL
76
a.gtld-servers.net.	IN 	A	192.5.6.30
Marek Vavruša's avatar
Marek Vavruša committed
77 78 79 80 81
ENTRY_END
RANGE_END

; a.gtld-servers.net.
RANGE_BEGIN 0 100
82
	ADDRESS 192.5.6.30
Marek Vavruša's avatar
Marek Vavruša committed
83 84 85 86 87 88 89 90 91
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
92
a.gtld-servers.net.	IN 	A	192.5.6.30
Marek Vavruša's avatar
Marek Vavruša committed
93 94 95
ENTRY_END

ENTRY_BEGIN
96 97
MATCH opcode subdomain
ADJUST copy_id copy_query
Marek Vavruša's avatar
Marek Vavruša committed
98 99
REPLY QR NOERROR
SECTION QUESTION
100
example.com. IN A
Marek Vavruša's avatar
Marek Vavruša committed
101 102 103
SECTION AUTHORITY
example.com.	IN NS	ns.example.com.
SECTION ADDITIONAL
104
ns.example.com.		IN 	A	1.2.3.4
Marek Vavruša's avatar
Marek Vavruša committed
105 106 107 108 109
ENTRY_END
RANGE_END

; ns.example.com.
RANGE_BEGIN 0 100
110
	ADDRESS 1.2.3.4
Marek Vavruša's avatar
Marek Vavruša committed
111 112 113 114 115 116 117 118 119
ENTRY_BEGIN
MATCH opcode qtype qname
ADJUST copy_id
REPLY QR NOERROR
SECTION QUESTION
example.com. IN NS
SECTION ANSWER
example.com.	IN NS	ns.example.com.
SECTION ADDITIONAL
120
ns.example.com.		IN 	A	1.2.3.4
Marek Vavruša's avatar
Marek Vavruša committed
121 122 123 124 125 126 127 128 129
ENTRY_END

ENTRY_BEGIN
MATCH opcode qtype qname
ADJUST copy_id
REPLY QR NOERROR
SECTION QUESTION
www.example.com. IN A
SECTION ANSWER
130
www.example.com. IN A	10.20.30.40
Marek Vavruša's avatar
Marek Vavruša committed
131 132 133
SECTION AUTHORITY
example.com.	IN NS	ns.example.com.
SECTION ADDITIONAL
134
ns.example.com.		IN 	A	1.2.3.4
Marek Vavruša's avatar
Marek Vavruša committed
135 136 137 138 139 140 141 142 143 144 145 146 147
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
148
MATCH flags rcode question
Marek Vavruša's avatar
Marek Vavruša committed
149 150 151 152
REPLY QR RD RA NOERROR
SECTION QUESTION
www.example.com. IN A
SECTION ANSWER
153
www.example.com. IN A	10.20.30.40
Marek Vavruša's avatar
Marek Vavruša committed
154 155 156 157 158 159 160
;SECTION AUTHORITY
;example.com.	IN NS	ns.example.com.
;SECTION ADDITIONAL
;ns.example.com.		IN 	A	1.2.3.4
ENTRY_END

SCENARIO_END