xref: /minix3/external/bsd/bind/dist/bin/tests/system/rpz/test2 (revision 00b67f09dd46474d133c95011a48590a8e8f94c7)
1; Copyright (C) 2011-2013  Internet Systems Consortium, Inc. ("ISC")
2;
3; Permission to use, copy, modify, and/or distribute this software for any
4; purpose with or without fee is hereby granted, provided that the above
5; copyright notice and this permission notice appear in all copies.
6;
7; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
8; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9; AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
10; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
12; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13; PERFORMANCE OF THIS SOFTWARE.
14
15
16
17; Use comment lines instead of blank lines to combine update requests into
18;	single requests
19; Separate update requests for distinct TLDs with blank lines or 'send'
20; End the file with a blank line or 'send'
21; CNAME targets are absolute even without trailing "."
22
23; IP tests
24
25server 10.53.0.3 5300
26
27; NODATA a3-1.tld2
28;	1
29update add  32.1.3.168.192.rpz-ip.bl	300 CNAME *.
30;
31; NXDOMAIN for 192.168.4.0/24, the network of a4-1.tld2 and a4-2.tld2
32;	4
33update add  24.0.4.168.192.rpz-ip.bl	300 CNAME .
34;
35; old passthru in NXDOMAIN CIDR block to leave a4-1.tld2 unchanged
36;	3
37update add  32.1.4.168.192.rpz-ip.bl	300 CNAME 32.1.4.168.192
38;
39; NODATA for a4-3.tld2
40;	8
41update add  32.3.4.168.192.rpz-ip.bl	300 CNAME *.
42;
43; NXDOMAIN for IPv6 a3-1.tld2
44;	9
45update add  128.1.zz.3.2.2001.rpz-ip.bl	300 CNAME .
46;
47; apply the policy with the lexically smaller trigger address of 192.168.5.1
48; to an RRset of more than one A RR
49;	11
50update add  32.1.5.168.192.rpz-ip.bl	300 A	127.0.0.1
51update add  32.2.5.168.192.rpz-ip.bl	300 A	127.0.0.2
52;
53; prefer first conflicting IP zone for a5-3.tld2
54;	12
55update add 32.3.5.168.192.rpz-ip.bl	300 A	127.0.0.1
56send
57update add 32.3.5.168.192.rpz-ip.bl-2	300 A	127.0.0.2
58send
59
60; prefer QNAME to IP for a5-4.tld2
61;	13, 14
62update add 32.4.5.168.192.rpz-ip.bl	300 CNAME a12.tld2.
63update add a5-4.tld2.bl			300 CNAME a14.tld4.
64;
65; poke hole in NXDOMAIN CIDR block to leave a4-4.tld2 unchanged
66;	15
67update add  32.4.4.168.192.rpz-ip.bl	300 CNAME rpz-passthru.
68;
69; assert in rbtdb.c
70;	16
71update add 32.16.1.16.172.rpz-ip.bl	300 CNAME .
72send
73update add c2.crash2.tld3.bl-2		300 A	127.0.0.16
74send
75
76; client-IP address trigger
77;	17
78update add 32.1.0.53.10.rpz-client-ip.bl 300 A	127.0.0.17
79send
80