xref: /netbsd-src/external/mpl/bind/dist/bin/tests/system/rpz/test2 (revision 33881f779a77dce6440bdc44610d94de75bebefe)
1; Copyright (C) Internet Systems Consortium, Inc. ("ISC")
2;
3; This Source Code Form is subject to the terms of the Mozilla Public
4; License, v. 2.0. If a copy of the MPL was not distributed with this
5; file, You can obtain one at http://mozilla.org/MPL/2.0/.
6;
7; See the COPYRIGHT file distributed with this work for additional
8; information regarding copyright ownership.
9
10
11
12; Use comment lines instead of blank lines to combine update requests into
13;	single requests
14; Separate update requests for distinct TLDs with blank lines or 'send'
15; End the file with a blank line or 'send'
16; CNAME targets are absolute even without trailing "."
17
18; IP tests
19
20server 10.53.0.3 @PORT@
21
22; NODATA a3-1.tld2
23;	1
24update add  32.1.3.168.192.rpz-ip.bl	300 CNAME *.
25;
26; NXDOMAIN for 192.168.4.0/24, the network of a4-1.tld2 and a4-2.tld2
27;	4
28update add  24.0.4.168.192.rpz-ip.bl	300 CNAME .
29;
30; old passthru in NXDOMAIN CIDR block to leave a4-1.tld2 unchanged
31;	3
32update add  32.1.4.168.192.rpz-ip.bl	300 CNAME 32.1.4.168.192
33;
34; NODATA for a4-3.tld2
35;	8
36update add  32.3.4.168.192.rpz-ip.bl	300 CNAME *.
37;
38; NXDOMAIN for IPv6 a3-1.tld2
39;	9
40update add  128.1.zz.3.2.2001.rpz-ip.bl	300 CNAME .
41;
42; apply the policy with the lexically smaller trigger address of 192.168.5.1
43; to an RRset of more than one A RR
44;	11
45update add  32.1.5.168.192.rpz-ip.bl	300 A	127.0.0.1
46update add  32.2.5.168.192.rpz-ip.bl	300 A	127.0.0.2
47;
48; prefer first conflicting IP zone for a5-3.tld2
49;	12
50update add 32.3.5.168.192.rpz-ip.bl	300 A	127.0.0.1
51send
52update add 32.3.5.168.192.rpz-ip.bl-2	300 A	127.0.0.2
53send
54
55; prefer QNAME to IP for a5-4.tld2
56;	13, 14
57update add 32.4.5.168.192.rpz-ip.bl	300 CNAME a12.tld2.
58update add a5-4.tld2.bl			300 CNAME a14.tld4.
59;
60; poke hole in NXDOMAIN CIDR block to leave a4-4.tld2 unchanged
61;	15
62update add  32.4.4.168.192.rpz-ip.bl	300 CNAME rpz-passthru.
63;
64; assert in rbtdb.c
65;	16
66update add 32.16.1.16.172.rpz-ip.bl	300 CNAME .
67send
68update add c2.crash2.tld3.bl-2		300 A	127.0.0.16
69send
70
71; client-IP address trigger
72;	17
73update add 32.1.0.53.10.rpz-client-ip.bl 300 A	127.0.0.17
74send
75