genzone.sh revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
#
# Copyright (C) 2001-2004, 2007, 2009, 2011-2016 Internet Systems Consortium, Inc. ("ISC")
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# 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 40
; type 41
; type 46
19961211100908 2143 foo.nil.
VfSCSqQYn6//11U6Nld80jEeC8aTrO+KKmCaY= )
; type 47
; type 48
; type 56
; type 57
; type 58
; type 59
A3B9 )
; type 60
; type 61
;type 62
; 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/"
; type 257
; type 258
; type 32768
A3B9 )
; type 32769
A3B9 )