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