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