3 # Copyright (C) 2004, 2007, 2009 Internet Systems Consortium, Inc. ("ISC")
4 # Copyright (C) 2001-2003 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: genzone.sh,v 1.11 2009/02/26 06:09:19 marka Exp
23 # Usage: genzone.sh master-server-number slave-server-number...
25 # e.g., "genzone.sh 2 3 4" means ns2 is the master and ns3, ns4
34 @ 86400 IN SOA ns${master} hostmaster (
57 ; see NS records
at top of
file
68 cname01 CNAME cname-target.
69 cname02 CNAME cname-target
73 ; see SOA record
at top of
file
88 ; NULL RRs are not allowed
in master files per RFC1035.
92 wks01 WKS
10.0.0.1 tcp
telnet ftp 0 1 2
93 wks02 WKS
10.0.0.1 udp domain
0 1 2
94 wks03 WKS
10.0.0.2 tcp
65535
100 hinfo01 HINFO
"Generic PC clone" "NetBSD-1.4"
101 hinfo02 HINFO PC NetBSD
104 minfo01 MINFO rmailbx emailbx
113 txt02 TXT
"foo" "bar"
117 txt06 TXT
"foo\032bar"
119 txt08 TXT
"foo\010bar"
126 rp01 RP mbox-dname txt-dname
130 afsdb01 AFSDB
0 hostname
131 afsdb02 AFSDB
65535 .
135 ;x2502 X25
"123456789"
138 isdn01 ISDN
"isdn-address"
139 isdn02 ISDN
"isdn-address" "subaddress"
140 isdn03 ISDN isdn-address
141 isdn04 ISDN isdn-address subaddress
144 rt01 RT
0 intermediate-host
149 0x47.0005.80.005a00.0000
.0001.e133.ffffff000161.00
)
151 0x47.0005.80.005a00.0000
.0001.e133.ffffff000161.00.
)
155 nsap-ptr01 NSAP-PTR foo.
156 nsap-ptr01 NSAP-PTR .
159 ;sig01 SIG NXT
1 3 ( 3600 20000102030405
160 ; 19961211100908 2143 foo.nil.
161 ; MxFcby9k
/yvedMfQgKzhH5er0Mu
/vILz45I
162 ; kskceFGgiWCn
/GxHhai6VAuHAoNUz4YoU1t
163 ; VfSCSqQYn
6//11U6Nld
80jEeC
8aTrO
+KKmCaY
= )
166 ;key01 KEY
512 ( 255 1 AQMFD5raczCJHViKtLYhWGz8hMY
167 ; 9UGRuniJDBzC
7w
0aRyzWZriO
6i
2odGWWQVucZqKV
168 ; sENW91IOW4vqudngPZsY3GvQ
/xVA
8/7pyFj6b7Esg
169 ; a60zyGW6LFe9r8n6paHrlG5ojqf0BaqHT
+8= )
172 px01 PX
65535 foo. bar.
176 gpos01 GPOS
-22.6882
116.8652 250.0
180 loc01 LOC
60 9 N
24 39 E
10 20 2000 20
181 loc02 LOC
60 09 00.000 N
24 39 00.000 E
10.00m
20.00m
(
185 ;nxt01 NXT a.secure.nil.
( NS SOA MX RRSIG KEY LOC NXT
)
186 ;nxt02 NXT . NXT NSAP-PTR
192 srv02 SRV
65535 65535 65535 old-slow-box
195 naptr01 NAPTR
0 0 "" "" "" .
196 naptr02 NAPTR
65535 65535 blurgh blorf blllbb foo.
197 naptr02 NAPTR
65535 65535 "blurgh" "blorf" "blllbb" foo.
204 cert01 CERT
65534 65535 254 (
205 MxFcby9k
/yvedMfQgKzhH5er0Mu
/vILz45I
206 kskceFGgiWCn
/GxHhai6VAuHAoNUz4YoU1t
207 VfSCSqQYn
6//11U6Nld
80jEeC
8aTrO
+KKmCaY
= )
209 a601 A6
0 ffff
:ffff
:ffff
:ffff
:ffff
:ffff
:ffff
:ffff
210 a601 A6
64 ::ffff
:ffff
:ffff
:ffff foo.
215 dname01 DNAME dname-target.
216 dname02 DNAME dname-target
220 ; OPT is a meta-type and should never occur
in master files.
223 rrsig01 RRSIG NSEC
1 3 ( 3600 20000102030405
224 19961211100908 2143 foo.nil.
225 MxFcby9k
/yvedMfQgKzhH5er0Mu
/vILz45I
226 kskceFGgiWCn
/GxHhai6VAuHAoNUz4YoU1t
227 VfSCSqQYn
6//11U6Nld
80jEeC
8aTrO
+KKmCaY
= )
230 nsec01 NSEC a.secure.nil.
( NS SOA MX RRSIG DNSKEY LOC NSEC
)
231 nsec02 NSEC . NSEC NSAP-PTR
233 nsec04 NSEC . TYPE127
236 dnskey01 DNSKEY
512 ( 255 1 AQMFD5raczCJHViKtLYhWGz8hMY
237 9UGRuniJDBzC
7w
0aRyzWZriO
6i
2odGWWQVucZqKV
238 sENW91IOW4vqudngPZsY3GvQ
/xVA
8/7pyFj6b7Esg
239 a60zyGW6LFe9r8n6paHrlG5ojqf0BaqHT
+8= )
242 ; TKEY is a meta-type and should never occur
in master files.
243 ; The text representation is not specified
in the draft.
244 ; This example was written based on the bind9 RR parsing code.
245 ;tkey01 TKEY
928321914 928321915 (
254 ;; A TKEY with empty
"other data"
255 ;tkey02 TKEY
928321914 928321915 (
265 hip1 HIP
( 2 200100107B1A74DF365639CC39F1D578
266 AwEAAbdxyhNuSutc5EMzxTs9LBPCIkOFH8cIvM4p9
+LrV4e19WzK00
+CI6zBCQTdtWsuxKbWIy87UOoJTwkUs7lBu
+Upr1gsNrut79ryra
+bSRGQb1slImA8YVJyuIDsj7kwzG7jnERNqnWxZ48AWkskmdHaVDP4BcelrTI3rMXdXF5D
)
269 hip2 HIP
( 2 200100107B1A74DF365639CC39F1D578
270 AwEAAbdxyhNuSutc5EMzxTs9LBPCIkOFH8cIvM4p9
+LrV4e19WzK00
+CI6zBCQTdtWsuxKbWIy87UOoJTwkUs7lBu
+Upr1gsNrut79ryra
+bSRGQb1slImA8YVJyuIDsj7kwzG7jnERNqnWxZ48AWkskmdHaVDP4BcelrTI3rMXdXF5D
274 ; TSIG is a meta-type and should never occur
in master files.