No empty .Rs/.Re
[netbsd-mini2440.git] / external / bsd / bind / dist / bin / tests / system / nsupdate / setup.sh
blobe29a137108b49ccdb4057883d25781ad3ca6329f
1 #!/bin/sh
3 # Copyright (C) 2004, 2007, 2009 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.sh,v 1.14 2009/12/04 03:33:15 marka Exp
20 SYSTEMTESTTOP=..
21 . $SYSTEMTESTTOP/conf.sh
24 # jnl and database files MUST be removed before we start
27 rm -f ns1/*.jnl ns1/example.db ns2/*.jnl ns2/example.bk
29 cp -f ns1/example1.db ns1/example.db
30 sed 's/example.nil/other.nil/g' ns1/example1.db > ns1/other.db
32 # update_test.pl has its own zone file because it
33 # requires a specific NS record set.
34 cat <<\EOF >ns1/update.db
35 $ORIGIN .
36 $TTL 300 ; 5 minutes
37 update.nil IN SOA ns1.example.nil. hostmaster.example.nil. (
38 1 ; serial
39 2000 ; refresh (2000 seconds)
40 2000 ; retry (2000 seconds)
41 1814400 ; expire (3 weeks)
42 3600 ; minimum (1 hour)
44 update.nil. NS ns1.update.nil.
45 ns1.update.nil. A 10.53.0.2
46 ns2.update.nil. AAAA ::1
47 EOF
49 ../../../tools/genrandom 400 random.data
50 $DDNSCONFGEN -q -r random.data -z example.nil > ns1/ddns.key