Remove building with NOCRYPTO option
[minix.git] / external / bsd / bind / dist / bin / tests / system / xferquota / setup.pl
blob4506a4699166eb8f3d6a1ad0f13c1d2694840963
1 #!/usr/bin/perl
3 # Copyright (C) 2004, 2007, 2011, 2012 Internet Systems Consortium, Inc. ("ISC")
4 # Copyright (C) 2000, 2001 Internet Software Consortium.
6 # Permission to use, copy, modify, and/or distribute this software for any
7 # purpose with or without fee is hereby granted, provided that the above
8 # copyright notice and this permission notice appear in all copies.
10 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
11 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
12 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
13 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
14 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
15 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16 # PERFORMANCE OF THIS SOFTWARE.
18 # Id: setup.pl,v 1.16 2011/10/26 23:46:15 tbox Exp
21 # Set up test data for zone transfer quota tests.
23 use FileHandle;
25 my $masterconf = new FileHandle("ns1/zones.conf", "w") or die;
26 my $slaveconf = new FileHandle("ns2/zones.conf", "w") or die;
28 for ($z = 0; $z < 300; $z++) {
29 my $zn = sprintf("zone%06d.example", $z);
30 print $masterconf "zone \"$zn\" { type master; file \"$zn.db\"; };\n";
31 print $slaveconf "zone \"$zn\" { type slave; file \"$zn.bk\"; masterfile-format text; masters { 10.53.0.1; }; };\n";
32 my $fn = "ns1/$zn.db";
33 my $f = new FileHandle($fn, "w") or die "open: $fn: $!";
34 print $f "\$TTL 300
35 \@ IN SOA ns1 . 1 300 120 3600 86400
36 NS ns1
37 NS ns2
38 ns1 A 10.53.0.1
39 ns2 A 10.53.0.2
40 MX 10 mail1.isp.example.
41 MX 20 mail2.isp.example.
42 www A 10.0.0.1
43 xyzzy A 10.0.0.2
45 $f->close;