xref: /netbsd-src/external/mpl/bind/dist/bin/tests/system/rpz/test1 (revision 3587d6f89c746bbb4f886219ddacd41ace480ecf)
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
20server 10.53.0.3 @PORT@
21
22; QNAME tests
23
24; NXDOMAIN
25;	2, 25
26update add  a0-1.tld2.bl.	300 CNAME .
27; NODATA
28;	3
29update add  a3-1.tld2.bl.	300 CNAME *.
30; and no assert-botch
31;	4, 5
32update add  a3-2.tld2.bl.	300 DNAME example.com.
33;
34; NXDOMAIN for a4-2-cname.tld2 via its target a4-2.tld2.
35;	6 and 7
36update add  a4-2.tld2.bl	300 CNAME .
37;	8
38; NODATA for a4-3-cname.tld2 via its target a4-3.tld2.
39update add  a4-3.tld2.bl	300 CNAME *.
40;
41; replace the A for a4-1.sub1.tld2 with 12.12.12.12
42;	9
43update add  a4-1.sub1.tld2.bl.	300 A 12.12.12.12
44;
45; replace the A for *.sub2.tld2 with 12.12.12.12
46;	10
47update add  a4-1.sub2.tld2.bl.	300 A 12.12.12.12
48;
49; replace NXDOMAIN for {nxc1,nxc2}.sub1.tld2 with 12.12.12.12 using CNAMEs
50;	11
51update add nxc1.sub1.tld2.bl.	300 CNAME a12.tld2.
52;	12
53update add nxc2.sub1.tld2.bl.	300 CNAME a12-cname.tld2.
54;
55; prefer the first conflicting zone
56;	13
57update add a4-4.tld2.bl.	300 A	127.4.4.1
58update add a6-1.tld2.bl.	300 CNAME a6-1.tld2.
59update add a6-2.tld2.bl.	300 A	127.6.2.1
60update add a6-1.tld2.bl.	300 A	127.6.1.1
61update add a6-2.tld2.bl.	300 CNAME a6-2.tld2.
62send
63update add a4-4.tld2.bl-2.	300 A	127.4.4.2
64send
65
66; wildcard CNAME
67;	16
68update add  a3-6.tld2.bl.	300 CNAME *.tld4.
69;	17
70update add  *.sub1.tld2.bl.	300 CNAME *.tld4.
71; CNAME chain
72;	18
73update add  a4-5.tld2.bl.	300 A	127.0.0.16
74; stop at first hit in CNAME chain
75;	19
76update add  a4-6.tld2.bl.	300 CNAME .
77update add  a4-6-cname.tld2.bl.	300 A	127.0.0.17
78; no change instead of NXDOMAIN because +norecurse
79;	20
80update add  a5-2.tld2.bl.	300 CNAME .
81; no change instead of NODATA because +norecurse
82;	21
83update add  a5-3.tld2.bl.	300 CNAME *.
84;	22, 23
85update add  a5-4.tld2.bl.	300 DNAME example.com.
86;
87; assert in rbtdb.c
88;	24
89update	add c1.crash2.tld3.bl.	300 CNAME .
90; DO=1 without signatures, DO=0 with signatures are rewritten
91;	26 - 27
92update add  a0-1.tld2s.bl.	300 CNAME .
93;	32
94update add  a3-8.tld2.bl.	300 CNAME rpz-drop.
95;	33
96update add  a3-9.tld2.bl.	300 CNAME rpz-tcp-only.
97;	34 qname-wait-recurse yes
98update add  x.servfail.bl.	300 A	127.0.0.34
99send
100