xref: /minix/external/bsd/bind/dist/bin/tests/system/rpz/test3 (revision bb9622b5)
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
22; NSDNAME tests
23
24server 10.53.0.3 5300
25
26;	3, 4, 5
27; NXDOMAIN for *.sub1.tld2 by NSDNAME
28update add  *.sub1.tld2.rpz-nsdname.bl.	300 CNAME .
29;
30;	6
31; walled garden for *.sub2.tld2
32update add  *.sub2.tld2.rpz-nsdname.bl.	300 CNAME a12-cname.tld2.
33;
34;	7, 8
35; exempt a3-2.tld2 and anything in 192.168.0.0/24
36;   also checks that IP policies are preferred over NSDNAME policies
37update add  a3-2.tld2.bl		300 CNAME a3-2.tld2.
38update add  24.0.0.168.192.rpz-ip.bl	300 CNAME 24.0.0.168.192.
39;
40;	9
41; prefer QNAME policy to NSDNAME policy
42update add  a4-1.tld2.bl.		300 A 12.12.12.12
43;	10
44; prefer policy for largest NS name
45update add  ns.sub3.tld2.rpz-nsdname.bl.	300 A	127.0.0.1
46update add  ns.subsub.sub3.tld2.rpz-nsdname.bl. 300 A	127.0.0.2
47send
48