genzone.sh revision bf8267aa453e5d2a735ed732a043b77a0b355b20
#
# Copyright (C) 2004, 2007, 2009, 2011, 2012 Internet Systems Consortium, Inc. ("ISC")
# Copyright (C) 2001-2003 Internet Software Consortium.
#
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: genzone.sh,v 1.13 2011/03/03 23:47:31 tbox Exp $
#
# Set up a test zone
#
# Usage: genzone.sh master-server-number slave-server-number...
#
# e.g., "genzone.sh 2 3 4" means ns2 is the master and ns3, ns4
# are slaves.
#
master="$1"
cat <<EOF
\$TTL 3600
@ 86400 IN SOA ns${master} hostmaster (
1397051952 ; "SER0"
5
5
1814400
3600 )
EOF
for n
do
cat <<EOF
@ NS ns${n}
ns${n} A 10.53.0.${n}
EOF
done
; type 1
; type 2
; type 3
; MD .
; type 4
; type 5
; type 6
; type 7
; type 8
; type 9
; type 10
; type 11
; type 12
; type 13
; type 14
; type 15
; type 16
; type 17
; type 18
; type 19
; type 20
; type 21
; type 22
0x47.0005.80.005a00.0000.0001.e133.ffffff000161.00 )
0x47.0005.80.005a00.0000.0001.e133.ffffff000161.00. )
; type 23
; type 24
; 19961211100908 2143 foo.nil.
; VfSCSqQYn6//11U6Nld80jEeC8aTrO+KKmCaY= )
; type 25
; type 26
; type 27
; type 29
2000.00m 20.00m )
; type 30
; type 33
; type 35
; type 36
; type 37
VfSCSqQYn6//11U6Nld80jEeC8aTrO+KKmCaY= )
; type 38
; type 39
; type 41
; type 46
19961211100908 2143 foo.nil.
VfSCSqQYn6//11U6Nld80jEeC8aTrO+KKmCaY= )
; type 47
; type 48
; type 249
; 255 ; algorithm
; 65535 ; mode
; 0 ; error
; )
; 255 ; algorithm
; 65535 ; mode
; 0 ; error
; )
AwEAAbdxyhNuSutc5EMzxTs9LBPCIkOFH8cIvM4p9+LrV4e19WzK00+CI6zBCQTdtWsuxKbWIy87UOoJTwkUs7lBu+Upr1gsNrut79ryra+bSRGQb1slImA8YVJyuIDsj7kwzG7jnERNqnWxZ48AWkskmdHaVDP4BcelrTI3rMXdXF5D )
AwEAAbdxyhNuSutc5EMzxTs9LBPCIkOFH8cIvM4p9+LrV4e19WzK00+CI6zBCQTdtWsuxKbWIy87UOoJTwkUs7lBu+Upr1gsNrut79ryra+bSRGQb1slImA8YVJyuIDsj7kwzG7jnERNqnWxZ48AWkskmdHaVDP4BcelrTI3rMXdXF5D
; type 255
; type 256
uri02 URI 30 40 "https://www.isc.org/HolyCowThisSureIsAVeryLongURIRecordIDontEvenKnowWhatSomeoneWouldEverWantWithSuchAThingButTheSpecificationRequiresThatWesupportItSoHereWeGoTestingItLaLaLaLaLaLaLaSeriouslyThoughWhyWouldYouEvenConsiderUsingAURIThisLongItSeemsLikeASillyIdeaButEnhWhatAreYouGonnaDo/"