xref: /netbsd-src/external/mpl/bind/dist/bin/tests/system/rpz/test3 (revision f281902de12281841521aa31ef834ad944d725e2)
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; Use comment lines instead of blank lines to combine update requests into
15;	single requests
16; Separate update requests for distinct TLDs with blank lines or 'send'
17; End the file with a blank line or 'send'
18
19; NSDNAME tests
20
21server 10.53.0.3 @PORT@
22
23;	3, 4, 5
24; NXDOMAIN for *.sub1.tld2 by NSDNAME
25update add  *.sub1.tld2.rpz-nsdname.bl.	300 CNAME .
26;
27;	6
28; walled garden for *.sub2.tld2
29update add  *.sub2.tld2.rpz-nsdname.bl.	300 CNAME a12-cname.tld2.
30;
31;	7, 8
32; exempt a3-2.tld2 and anything in 192.168.0.0/24
33;   also checks that IP policies are preferred over NSDNAME policies
34update add  a3-2.tld2.bl		300 CNAME a3-2.tld2.
35update add  24.0.0.168.192.rpz-ip.bl	300 CNAME 24.0.0.168.192.
36;
37;	9
38; prefer QNAME policy to NSDNAME policy
39update add  a4-1.tld2.bl.		300 A 12.12.12.12
40;	10
41; prefer policy for largest NS name
42update add  ns.sub3.tld2.rpz-nsdname.bl.	300 A	127.0.0.1
43update add  ns.subsub.sub3.tld2.rpz-nsdname.bl. 300 A	127.0.0.2
44
45; ip-as-qname rewrites all of tld5
46update add  ns.tld5.bl.			300 A 12.12.12.12
47send
48