File: local_acl_taglist.rpl

package info (click to toggle)
unbound 1.6.0-2~bpo8+1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 20,444 kB
  • sloc: ansic: 79,862; sh: 5,040; yacc: 1,900; makefile: 1,315; python: 1,302; perl: 141
file content (169 lines) | stat: -rw-r--r-- 3,183 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
; config options
server:
	define-tag: "tag1 tag2 tag3"
	define-tag: "tag4"
	local-zone: "example." redirect
	local-data: 'example. IN TXT "data 0"'
	local-zone: "d.example." static
	local-data: 'd.example. IN TXT "data 1"'
	local-zone: "c.d.example." redirect
	local-data: 'c.d.example. IN TXT "data 2"'
	local-zone: "b.c.d.example." redirect
	local-data: 'b.c.d.example. IN TXT "data 3"'
	local-zone: "foo." redirect
	local-data: 'foo. IN TXT "data plain 4"'

	; no tags for local-zones example. and c.d.example.
	local-zone-tag: "d.example." "tag1 tag2"
	local-zone-tag: "b.c.d.example." "tag3"
	local-zone-tag: "foo." "tag4"

	access-control: 10.10.10.0/24 allow
	access-control-tag: 10.10.10.20/32 "tag1"
	access-control-tag: 10.10.10.30/32 "tag2 tag3"
	access-control-tag: 10.10.10.40/32 "tag3"

	access-control-tag: 10.10.10.50/32 "tag4"
	access-control-tag-data: 10.10.10.50/32 "tag4" 'TXT "data tag4"'
	access-control-tag: 10.10.10.60/32 "tag4"
	

CONFIG_END
SCENARIO_BEGIN Test local data queries

STEP 1 QUERY ADDRESS 10.10.10.10
ENTRY_BEGIN
SECTION QUESTION
d.example. IN TXT
ENTRY_END
STEP 2 CHECK_ANSWER
ENTRY_BEGIN
MATCH all
REPLY QR RA AA
SECTION QUESTION
d.example. IN TXT
SECTION ANSWER
d.example. IN TXT "data 0"
ENTRY_END

STEP 3 QUERY ADDRESS 10.10.10.20
ENTRY_BEGIN
SECTION QUESTION
d.example. IN TXT
ENTRY_END
STEP 4 CHECK_ANSWER
ENTRY_BEGIN
MATCH all
REPLY QR RA AA
SECTION QUESTION
d.example. IN TXT
SECTION ANSWER
d.example. IN TXT "data 1"
ENTRY_END

STEP 5 QUERY ADDRESS 10.10.10.30
ENTRY_BEGIN
SECTION QUESTION
d.example. IN TXT
ENTRY_END
STEP 6 CHECK_ANSWER
ENTRY_BEGIN
MATCH all
REPLY QR RA AA
SECTION QUESTION
d.example. IN TXT
SECTION ANSWER
d.example. IN TXT "data 1"
ENTRY_END

STEP 7 QUERY ADDRESS 10.10.10.40
ENTRY_BEGIN
SECTION QUESTION
d.example. IN TXT
ENTRY_END
STEP 8 CHECK_ANSWER
ENTRY_BEGIN
MATCH all
REPLY QR RA AA
SECTION QUESTION
d.example. IN TXT
SECTION ANSWER
d.example. IN TXT "data 0"
ENTRY_END

STEP 9 QUERY ADDRESS 10.10.10.20
ENTRY_BEGIN
SECTION QUESTION
c.d.example. IN TXT
ENTRY_END
STEP 10 CHECK_ANSWER
ENTRY_BEGIN
MATCH all
REPLY QR RA AA
SECTION QUESTION
c.d.example. IN TXT
SECTION ANSWER
c.d.example. IN TXT "data 2"
ENTRY_END

STEP 11 QUERY ADDRESS 10.10.10.20
ENTRY_BEGIN
SECTION QUESTION
a.b.c.d.example. IN TXT
ENTRY_END
STEP 12 CHECK_ANSWER
ENTRY_BEGIN
MATCH all
REPLY QR RA AA
SECTION QUESTION
a.b.c.d.example. IN TXT
SECTION ANSWER
a.b.c.d.example. IN TXT "data 2"
ENTRY_END

STEP 13 QUERY ADDRESS 10.10.10.30
ENTRY_BEGIN
SECTION QUESTION
a.b.c.d.example. IN TXT
ENTRY_END
STEP 14 CHECK_ANSWER
ENTRY_BEGIN
MATCH all
REPLY QR RA AA
SECTION QUESTION
a.b.c.d.example. IN TXT
SECTION ANSWER
a.b.c.d.example. IN TXT "data 3"
ENTRY_END

STEP 15 QUERY ADDRESS 10.10.10.50
ENTRY_BEGIN
SECTION QUESTION
www.foo. IN TXT
ENTRY_END
STEP 16 CHECK_ANSWER
ENTRY_BEGIN
MATCH all
REPLY QR RA AA
SECTION QUESTION
www.foo. IN TXT
SECTION ANSWER
www.foo. IN TXT "data tag4"
ENTRY_END

STEP 17 QUERY ADDRESS 10.10.10.60
ENTRY_BEGIN
SECTION QUESTION
www.foo. IN TXT
ENTRY_END
STEP 18 CHECK_ANSWER
ENTRY_BEGIN
MATCH all
REPLY QR RA AA
SECTION QUESTION
www.foo. IN TXT
SECTION ANSWER
www.foo. IN TXT "data plain 4"
ENTRY_END

SCENARIO_END