Commit c3c6770e authored by Michael Sawyer's avatar Michael Sawyer

Add nsupdate/ixfr test suite

parent 61e72087
......@@ -13,7 +13,7 @@
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
# SOFTWARE.
# $Id: Makefile.in,v 1.11 2000/06/26 18:00:15 explorer Exp $
# $Id: Makefile.in,v 1.12 2000/07/06 00:54:01 mws Exp $
@BIND9_INCLUDES@
SUBDIRS = lwresd
......@@ -21,15 +21,15 @@ TARGETS =
@BIND9_MAKE_RULES@
test: dnssec_test limits_test notify_test stub_test views_test xfer_test \
xferquota_test
test: dnssec_test limits_test notify_test nsupdate_test stub_test views_test \
xfer_test xferquota_test
distclean::
sh ./cleanall.sh
clean distclean:: dnssec_test_clean limits_test_clean notify_test_clean \
stub_test_clean views_test_clean xfer_test_clean \
xferquota_test_clean
nsupdate_test_clean stub_test_clean views_test_clean \
xfer_test_clean xferquota_test_clean
installdirs:
......@@ -44,6 +44,9 @@ limits_test:
notify_test:
sh ./run.sh notify
nsupdate_test:
sh ./run.sh nsupdate
stub_test:
sh ./run.sh stub
......@@ -68,6 +71,9 @@ limits_test_clean:
notify_test_clean:
sh ./clean.sh notify
nsupdate_test_clean:
sh ./clean.sh nsupdate
stub_test_clean:
sh ./clean.sh stub
......
#!/bin/sh
#
# Copyright (C) 2000 Internet Software Consortium.
#
# Permission to use, copy, modify, and distribute this software for any
# 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 INTERNET SOFTWARE CONSORTIUM DISCLAIMS
# ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
# OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
# CONSORTIUM 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: clean.sh,v 1.1 2000/07/06 00:54:02 mws Exp $
#
# Clean up after zone transfer tests.
#
rm -f dig.out.ns1 dig.out.ns2 ns1/*.jnl ns2/*.jnl
example.nil. 300 IN SOA ns1.example.nil. hostmaster.example.nil. ( 2 2000 2000 1814400 3600 )
example.nil. 300 IN NS ns2.example.nil.
example.nil. 300 IN NS ns3.example.nil.
*.example.nil. 300 IN MX 10 mail.example.nil.
a.example.nil. 300 IN TXT "foo foo foo"
a.example.nil. 300 IN PTR foo.net.
a01.example.nil. 3600 IN A 0.0.0.0
a02.example.nil. 3600 IN A 255.255.255.255
a601.example.nil. 3600 IN A6 0 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
a601.example.nil. 3600 IN A6 64 ::ffff:ffff:ffff:ffff foo.
a601.example.nil. 3600 IN A6 127 ::1 foo.
a601.example.nil. 3600 IN A6 128 .
afsdb01.example.nil. 3600 IN AFSDB 0 hostname.example.nil.
afsdb02.example.nil. 3600 IN AFSDB 65535 .
b.example.nil. 300 IN CNAME foo.net.
c.example.nil. 300 IN A 73.80.65.49
cert01.example.nil. 3600 IN CERT 65534 65535 PRIVATEOID MxFcby9k/yvedMfQgKzhH5er0Mu/vILz45IkskceFGgiWCn/GxHhai6V AuHAoNUz4YoU1tVfSCSqQYn6//11U6Nld80jEeC8aTrO+KKmCaY=
cname01.example.nil. 3600 IN CNAME cname-target.
cname02.example.nil. 3600 IN CNAME cname-target.example.nil.
cname03.example.nil. 3600 IN CNAME .
d.example.nil. 300 IN A 73.80.65.49
dname01.example.nil. 3600 IN DNAME dname-target.
dname02.example.nil. 3600 IN DNAME dname-target.example.nil.
dname03.example.nil. 3600 IN DNAME .
e.example.nil. 300 IN MX 10 mail.example.nil.
e.example.nil. 300 IN TXT "one"
e.example.nil. 300 IN TXT "three"
e.example.nil. 300 IN TXT "two"
e.example.nil. 300 IN A 73.80.65.49
e.example.nil. 300 IN A 73.80.65.50
e.example.nil. 300 IN A 73.80.65.52
e.example.nil. 300 IN A 73.80.65.51
f.example.nil. 300 IN A 73.80.65.52
gpos01.example.nil. 3600 IN GPOS "-22.6882" "116.8652" "250.0"
gpos02.example.nil. 3600 IN GPOS "" "" ""
hinfo01.example.nil. 3600 IN HINFO "Generic PC clone" "NetBSD-1.4"
hinfo02.example.nil. 3600 IN HINFO "PC" "NetBSD"
isdn01.example.nil. 3600 IN ISDN "isdn-address"
isdn02.example.nil. 3600 IN ISDN "isdn-address" "subaddress"
isdn03.example.nil. 3600 IN ISDN "isdn-address"
isdn04.example.nil. 3600 IN ISDN "isdn-address" "subaddress"
key01.example.nil. 3600 IN KEY 512 255 1 AQMFD5raczCJHViKtLYhWGz8hMY9UGRuniJDBzC7w0aRyzWZriO6i2od GWWQVucZqKVsENW91IOW4vqudngPZsY3GvQ/xVA8/7pyFj6b7Esga60z yGW6LFe9r8n6paHrlG5ojqf0BaqHT+8=
kx01.example.nil. 3600 IN KX 10 kdc.example.nil.
kx02.example.nil. 3600 IN KX 10 .
loc01.example.nil. 3600 IN LOC 60 9 0.000 N 24 39 0.000 E 10.00m 20m 2000m 20m
loc02.example.nil. 3600 IN LOC 60 9 0.000 N 24 39 0.000 E 10.00m 20m 2000m 20m
mb01.example.nil. 3600 IN MG madname.example.nil.
mb02.example.nil. 3600 IN MG .
md01.example.nil. 3600 IN MD madname.example.nil.
md01.example.nil. 3600 IN MD .
mf01.example.nil. 3600 IN MF madname.example.nil.
mf01.example.nil. 3600 IN MF .
mg01.example.nil. 3600 IN MG mgmname.example.nil.
mg02.example.nil. 3600 IN MG .
minfo01.example.nil. 3600 IN MINFO rmailbx.example.nil. emailbx.example.nil.
minfo02.example.nil. 3600 IN MINFO . .
mr01.example.nil. 3600 IN MR mrname.example.nil.
mr02.example.nil. 3600 IN MR .
mx01.example.nil. 3600 IN MX 10 mail.example.nil.
mx02.example.nil. 3600 IN MX 10 .
naptr01.example.nil. 3600 IN NAPTR 0 0 "" "" "" .
naptr02.example.nil. 3600 IN NAPTR 65535 65535 "blurgh" "blorf" "blegh" foo.
ns1.example.nil. 300 IN A 10.53.0.1
ns2.example.nil. 300 IN A 10.53.0.2
nsap-ptr01.example.nil. 3600 IN NSAP-PTR foo.
nsap-ptr01.example.nil. 3600 IN NSAP-PTR .
nsap01.example.nil. 3600 IN NSAP 0x47000580005a0000000001e133ffffff00016100
nsap02.example.nil. 3600 IN NSAP 0x47000580005a0000000001e133ffffff00016100
nxt01.example.nil. 3600 IN NXT a.secure.example.nil. ( NS SOA MX SIG KEY LOC NXT )
nxt02.example.nil. 3600 IN NXT . ( NSAP-PTR NXT )
nxt03.example.nil. 3600 IN NXT . ( A )
nxt04.example.nil. 3600 IN NXT . ( 127 )
ptr01.example.nil. 3600 IN PTR example.nil.
px01.example.nil. 3600 IN PX 65535 foo. bar.
px02.example.nil. 3600 IN PX 65535 . .
rp01.example.nil. 3600 IN RP mbox-dname.example.nil. txt-dname.example.nil.
rp02.example.nil. 3600 IN RP . .
rt01.example.nil. 3600 IN RT 0 intermediate-host.example.nil.
rt02.example.nil. 3600 IN RT 65535 .
s.example.nil. 300 IN NS ns.s.example.nil.
ns.s.example.nil. 300 IN A 73.80.65.49
sig01.example.nil. 3600 IN SIG NXT 1 3 3600 20000102030405 19961211100908 2143 foo.example.nil. MxFcby9k/yvedMfQgKzhH5er0Mu/vILz45IkskceFGgiWCn/GxHhai6V AuHAoNUz4YoU1tVfSCSqQYn6//11U6Nld80jEeC8aTrO+KKmCaY=
srv01.example.nil. 3600 IN SRV 0 0 0 .
srv02.example.nil. 3600 IN SRV 65535 65535 65535 old-slow-box.example.com.
txt01.example.nil. 3600 IN TXT "foo"
txt02.example.nil. 3600 IN TXT "foo" "bar"
txt03.example.nil. 3600 IN TXT "foo"
txt04.example.nil. 3600 IN TXT "foo" "bar"
txt05.example.nil. 3600 IN TXT "foo bar"
txt06.example.nil. 3600 IN TXT "foo bar"
txt07.example.nil. 3600 IN TXT "foo bar"
txt08.example.nil. 3600 IN TXT "foo\010bar"
txt09.example.nil. 3600 IN TXT "foo\010bar"
txt10.example.nil. 3600 IN TXT "foo bar"
txt11.example.nil. 3600 IN TXT "\"foo\""
txt12.example.nil. 3600 IN TXT "\"foo\""
u.example.nil. 300 IN TXT "txt-not-in-nxt"
a.u.example.nil. 300 IN A 73.80.65.49
b.u.example.nil. 300 IN A 73.80.65.49
updated.example.nil. 600 IN TXT "Foo"
updated.example.nil. 600 IN A 10.10.10.1
wks01.example.nil. 3600 IN WKS 10.0.0.1 6 ( 0 1 2 21 23 )
wks02.example.nil. 3600 IN WKS 10.0.0.1 17 ( 0 1 2 53 )
wks03.example.nil. 3600 IN WKS 10.0.0.2 6 ( 65535 )
x2501.example.nil. 3600 IN X25 "123456789"
example.nil. 300 IN SOA ns1.example.nil. hostmaster.example.nil. ( 2 2000 2000 1814400 3600 )
example.nil. 300 IN SOA ns1.example.nil. hostmaster.example.nil. ( 1 2000 2000 1814400 3600 )
example.nil. 300 IN NS ns2.example.nil.
example.nil. 300 IN NS ns3.example.nil.
*.example.nil. 300 IN MX 10 mail.example.nil.
a.example.nil. 300 IN TXT "foo foo foo"
a.example.nil. 300 IN PTR foo.net.
a01.example.nil. 3600 IN A 0.0.0.0
a02.example.nil. 3600 IN A 255.255.255.255
a601.example.nil. 3600 IN A6 0 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
a601.example.nil. 3600 IN A6 64 ::ffff:ffff:ffff:ffff foo.
a601.example.nil. 3600 IN A6 127 ::1 foo.
a601.example.nil. 3600 IN A6 128 .
afsdb01.example.nil. 3600 IN AFSDB 0 hostname.example.nil.
afsdb02.example.nil. 3600 IN AFSDB 65535 .
b.example.nil. 300 IN CNAME foo.net.
c.example.nil. 300 IN A 73.80.65.49
cert01.example.nil. 3600 IN CERT 65534 65535 PRIVATEOID MxFcby9k/yvedMfQgKzhH5er0Mu/vILz45IkskceFGgiWCn/GxHhai6V AuHAoNUz4YoU1tVfSCSqQYn6//11U6Nld80jEeC8aTrO+KKmCaY=
cname01.example.nil. 3600 IN CNAME cname-target.
cname02.example.nil. 3600 IN CNAME cname-target.example.nil.
cname03.example.nil. 3600 IN CNAME .
d.example.nil. 300 IN A 73.80.65.49
dname01.example.nil. 3600 IN DNAME dname-target.
dname02.example.nil. 3600 IN DNAME dname-target.example.nil.
dname03.example.nil. 3600 IN DNAME .
e.example.nil. 300 IN MX 10 mail.example.nil.
e.example.nil. 300 IN TXT "one"
e.example.nil. 300 IN TXT "three"
e.example.nil. 300 IN TXT "two"
e.example.nil. 300 IN A 73.80.65.49
e.example.nil. 300 IN A 73.80.65.50
e.example.nil. 300 IN A 73.80.65.52
e.example.nil. 300 IN A 73.80.65.51
f.example.nil. 300 IN A 73.80.65.52
gpos01.example.nil. 3600 IN GPOS "-22.6882" "116.8652" "250.0"
gpos02.example.nil. 3600 IN GPOS "" "" ""
hinfo01.example.nil. 3600 IN HINFO "Generic PC clone" "NetBSD-1.4"
hinfo02.example.nil. 3600 IN HINFO "PC" "NetBSD"
isdn01.example.nil. 3600 IN ISDN "isdn-address"
isdn02.example.nil. 3600 IN ISDN "isdn-address" "subaddress"
isdn03.example.nil. 3600 IN ISDN "isdn-address"
isdn04.example.nil. 3600 IN ISDN "isdn-address" "subaddress"
key01.example.nil. 3600 IN KEY 512 255 1 AQMFD5raczCJHViKtLYhWGz8hMY9UGRuniJDBzC7w0aRyzWZriO6i2od GWWQVucZqKVsENW91IOW4vqudngPZsY3GvQ/xVA8/7pyFj6b7Esga60z yGW6LFe9r8n6paHrlG5ojqf0BaqHT+8=
kx01.example.nil. 3600 IN KX 10 kdc.example.nil.
kx02.example.nil. 3600 IN KX 10 .
loc01.example.nil. 3600 IN LOC 60 9 0.000 N 24 39 0.000 E 10.00m 20m 2000m 20m
loc02.example.nil. 3600 IN LOC 60 9 0.000 N 24 39 0.000 E 10.00m 20m 2000m 20m
mb01.example.nil. 3600 IN MG madname.example.nil.
mb02.example.nil. 3600 IN MG .
md01.example.nil. 3600 IN MD madname.example.nil.
md01.example.nil. 3600 IN MD .
mf01.example.nil. 3600 IN MF madname.example.nil.
mf01.example.nil. 3600 IN MF .
mg01.example.nil. 3600 IN MG mgmname.example.nil.
mg02.example.nil. 3600 IN MG .
minfo01.example.nil. 3600 IN MINFO rmailbx.example.nil. emailbx.example.nil.
minfo02.example.nil. 3600 IN MINFO . .
mr01.example.nil. 3600 IN MR mrname.example.nil.
mr02.example.nil. 3600 IN MR .
mx01.example.nil. 3600 IN MX 10 mail.example.nil.
mx02.example.nil. 3600 IN MX 10 .
naptr01.example.nil. 3600 IN NAPTR 0 0 "" "" "" .
naptr02.example.nil. 3600 IN NAPTR 65535 65535 "blurgh" "blorf" "blegh" foo.
ns1.example.nil. 300 IN A 10.53.0.1
ns2.example.nil. 300 IN A 10.53.0.2
nsap-ptr01.example.nil. 3600 IN NSAP-PTR foo.
nsap-ptr01.example.nil. 3600 IN NSAP-PTR .
nsap01.example.nil. 3600 IN NSAP 0x47000580005a0000000001e133ffffff00016100
nsap02.example.nil. 3600 IN NSAP 0x47000580005a0000000001e133ffffff00016100
nxt01.example.nil. 3600 IN NXT a.secure.example.nil. ( NS SOA MX SIG KEY LOC NXT )
nxt02.example.nil. 3600 IN NXT . ( NSAP-PTR NXT )
nxt03.example.nil. 3600 IN NXT . ( A )
nxt04.example.nil. 3600 IN NXT . ( 127 )
ptr01.example.nil. 3600 IN PTR example.nil.
px01.example.nil. 3600 IN PX 65535 foo. bar.
px02.example.nil. 3600 IN PX 65535 . .
rp01.example.nil. 3600 IN RP mbox-dname.example.nil. txt-dname.example.nil.
rp02.example.nil. 3600 IN RP . .
rt01.example.nil. 3600 IN RT 0 intermediate-host.example.nil.
rt02.example.nil. 3600 IN RT 65535 .
s.example.nil. 300 IN NS ns.s.example.nil.
ns.s.example.nil. 300 IN A 73.80.65.49
sig01.example.nil. 3600 IN SIG NXT 1 3 3600 20000102030405 19961211100908 2143 foo.example.nil. MxFcby9k/yvedMfQgKzhH5er0Mu/vILz45IkskceFGgiWCn/GxHhai6V AuHAoNUz4YoU1tVfSCSqQYn6//11U6Nld80jEeC8aTrO+KKmCaY=
srv01.example.nil. 3600 IN SRV 0 0 0 .
srv02.example.nil. 3600 IN SRV 65535 65535 65535 old-slow-box.example.com.
t.example.nil. 301 IN A 73.80.65.49
txt01.example.nil. 3600 IN TXT "foo"
txt02.example.nil. 3600 IN TXT "foo" "bar"
txt03.example.nil. 3600 IN TXT "foo"
txt04.example.nil. 3600 IN TXT "foo" "bar"
txt05.example.nil. 3600 IN TXT "foo bar"
txt06.example.nil. 3600 IN TXT "foo bar"
txt07.example.nil. 3600 IN TXT "foo bar"
txt08.example.nil. 3600 IN TXT "foo\010bar"
txt09.example.nil. 3600 IN TXT "foo\010bar"
txt10.example.nil. 3600 IN TXT "foo bar"
txt11.example.nil. 3600 IN TXT "\"foo\""
txt12.example.nil. 3600 IN TXT "\"foo\""
u.example.nil. 300 IN TXT "txt-not-in-nxt"
a.u.example.nil. 300 IN A 73.80.65.49
b.u.example.nil. 300 IN A 73.80.65.49
wks01.example.nil. 3600 IN WKS 10.0.0.1 6 ( 0 1 2 21 23 )
wks02.example.nil. 3600 IN WKS 10.0.0.1 17 ( 0 1 2 53 )
wks03.example.nil. 3600 IN WKS 10.0.0.2 6 ( 65535 )
x2501.example.nil. 3600 IN X25 "123456789"
example.nil. 300 IN SOA ns1.example.nil. hostmaster.example.nil. ( 1 2000 2000 1814400 3600 )
; Copyright (C) 2000 Internet Software Consortium.
;
; Permission to use, copy, modify, and distribute this software for any
; 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 INTERNET SOFTWARE CONSORTIUM DISCLAIMS
; ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
; OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
; CONSORTIUM 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: example.orig,v 1.1 2000/07/06 00:54:03 mws Exp $
$ORIGIN .
$TTL 300 ; 5 minutes
example.nil IN SOA ns1.example.nil. hostmaster.example.nil. (
1 ; serial
2000 ; refresh (2000 seconds)
2000 ; retry (2000 seconds)
1814400 ; expire (3 weeks)
3600 ; minimum (1 hour)
)
example.nil. NS ns2.example.nil.
ns1.example.nil. A 10.53.0.1
example.nil. NS ns3.example.nil.
ns2.example.nil. A 10.53.0.2
$ORIGIN example.nil.
* MX 10 mail
a TXT "foo foo foo"
PTR foo.net.
$TTL 3600 ; 1 hour
a01 A 0.0.0.0
a02 A 255.255.255.255
a601 A6 0 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
A6 64 ::ffff:ffff:ffff:ffff foo.
A6 127 ::1 foo.
A6 128 .
afsdb01 AFSDB 0 hostname
afsdb02 AFSDB 65535 .
$TTL 300 ; 5 minutes
b CNAME foo.net.
c A 73.80.65.49
$TTL 3600 ; 1 hour
cert01 CERT 65534 65535 PRIVATEOID (
MxFcby9k/yvedMfQgKzhH5er0Mu/vILz45IkskceFGgi
WCn/GxHhai6VAuHAoNUz4YoU1tVfSCSqQYn6//11U6Nl
d80jEeC8aTrO+KKmCaY= )
cname01 CNAME cname-target.
cname02 CNAME cname-target
cname03 CNAME .
$TTL 300 ; 5 minutes
d A 73.80.65.49
$TTL 3600 ; 1 hour
dname01 DNAME dname-target.
dname02 DNAME dname-target
dname03 DNAME .
$TTL 300 ; 5 minutes
e MX 10 mail
TXT "one"
TXT "three"
TXT "two"
A 73.80.65.49
A 73.80.65.50
A 73.80.65.52
A 73.80.65.51
f A 73.80.65.52
$TTL 3600 ; 1 hour
gpos01 GPOS "-22.6882" "116.8652" "250.0"
gpos02 GPOS "" "" ""
hinfo01 HINFO "Generic PC clone" "NetBSD-1.4"
hinfo02 HINFO "PC" "NetBSD"
isdn01 ISDN "isdn-address"
isdn02 ISDN "isdn-address" "subaddress"
isdn03 ISDN "isdn-address"
isdn04 ISDN "isdn-address" "subaddress"
key01 KEY 512 255 1 (
AQMFD5raczCJHViKtLYhWGz8hMY9UGRuniJDBzC7w0aR
yzWZriO6i2odGWWQVucZqKVsENW91IOW4vqudngPZsY3
GvQ/xVA8/7pyFj6b7Esga60zyGW6LFe9r8n6paHrlG5o
jqf0BaqHT+8= )
kx01 KX 10 kdc
kx02 KX 10 .
loc01 LOC 60 9 0.000 N 24 39 0.000 E 10.00m 20m 2000m 20m
loc02 LOC 60 9 0.000 N 24 39 0.000 E 10.00m 20m 2000m 20m
mb01 MG madname
mb02 MG .
md01 MD madname
MD .
mf01 MF madname
MF .
mg01 MG mgmname
mg02 MG .
minfo01 MINFO rmailbx emailbx
minfo02 MINFO . .
mr01 MR mrname
mr02 MR .
mx01 MX 10 mail
mx02 MX 10 .
naptr01 NAPTR 0 0 "" "" "" .
naptr02 NAPTR 65535 65535 "blurgh" "blorf" "blegh" foo.
nsap-ptr01 NSAP-PTR foo.
NSAP-PTR .
nsap01 NSAP 0x47000580005a0000000001e133ffffff00016100
nsap02 NSAP 0x47000580005a0000000001e133ffffff00016100
nxt01 NXT a.secure ( NS SOA MX SIG KEY LOC NXT )
nxt02 NXT . ( NSAP-PTR NXT )
nxt03 NXT . ( A )
nxt04 NXT . ( 127 )
ptr01 PTR example.nil.
px01 PX 65535 foo. bar.
px02 PX 65535 . .
rp01 RP mbox-dname txt-dname
rp02 RP . .
rt01 RT 0 intermediate-host
rt02 RT 65535 .
$TTL 300 ; 5 minutes
s NS ns.s
$ORIGIN s.example.nil.
ns A 73.80.65.49
$ORIGIN example.nil.
$TTL 3600 ; 1 hour
sig01 SIG NXT 1 3 3600 20000102030405 (
19961211100908 2143 foo
MxFcby9k/yvedMfQgKzhH5er0Mu/vILz45IkskceFGgi
WCn/GxHhai6VAuHAoNUz4YoU1tVfSCSqQYn6//11U6Nl
d80jEeC8aTrO+KKmCaY= )
srv01 SRV 0 0 0 .
srv02 SRV 65535 65535 65535 old-slow-box.example.com.
$TTL 301 ; 5 minutes 1 second
t A 73.80.65.49
$TTL 3600 ; 1 hour
txt01 TXT "foo"
txt02 TXT "foo" "bar"
txt03 TXT "foo"
txt04 TXT "foo" "bar"
txt05 TXT "foo bar"
txt06 TXT "foo bar"
txt07 TXT "foo bar"
txt08 TXT "foo\010bar"
txt09 TXT "foo\010bar"
txt10 TXT "foo bar"
txt11 TXT "\"foo\""
txt12 TXT "\"foo\""
$TTL 300 ; 5 minutes
u TXT "txt-not-in-nxt"
$ORIGIN u.example.nil.
a A 73.80.65.49
b A 73.80.65.49
$ORIGIN example.nil.
$TTL 3600 ; 1 hour
wks01 WKS 10.0.0.1 6 ( 0 1 2 21 23 )
wks02 WKS 10.0.0.1 17 ( 0 1 2 53 )
wks03 WKS 10.0.0.2 6 ( 65535 )
x2501 X25 "123456789"
/*
* Copyright (C) 2000 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* 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 INTERNET SOFTWARE CONSORTIUM DISCLAIMS
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
* CONSORTIUM 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: named.conf,v 1.1 2000/07/06 00:54:03 mws Exp $ */
options {
query-source address 10.53.0.1;
port 5300;
pid-file "named.pid";
listen-on { 10.53.0.1; };
listen-on-v6 {none;};
recursion no;
notify yes;
};
zone "example.nil" {
type master;
file "example.db";
allow-update { any; };
allow-transfer { any; };
};
/*
* Copyright (C) 2000 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* 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 INTERNET SOFTWARE CONSORTIUM DISCLAIMS
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
* CONSORTIUM 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: named.conf,v 1.1 2000/07/06 00:54:03 mws Exp $ */
options {
query-source address 10.53.0.2;
port 5300;
directory ".";
pid-file "named.pid";
listen-on { 10.53.0.2; };
listen-on-v6 {none;};
recursion yes;
notify yes;
};
zone "example.nil" {
type slave;
masters { 10.53.0.1; };
file "example.bk";
allow-transfer { any; };
};
#!/bin/sh
#
# Copyright (C) 2000 Internet Software Consortium.
#
# Permission to use, copy, modify, and distribute this software for any
# 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 INTERNET SOFTWARE CONSORTIUM DISCLAIMS
# ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
# OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
# CONSORTIUM 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: setup.sh,v 1.1 2000/07/06 00:54:02 mws Exp $
#
# jnl and database files MUST be removed before we start
#
rm -f ns1/*.jnl ns1/example.db ns2/*.jnl ns2/example.bk
cp ns1/example.orig ns1/example.db
#!/bin/sh
#
# Copyright (C) 2000 Internet Software Consortium.
#
# Permission to use, copy, modify, and distribute this software for any
# 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 INTERNET SOFTWARE CONSORTIUM DISCLAIMS
# ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
# OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
# CONSORTIUM 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: tests.sh,v 1.1 2000/07/06 00:54:02 mws Exp $
#
# Perform tests
#
SYSTEMTESTTOP=..
. $SYSTEMTESTTOP/conf.sh
status=0
$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd example.nil.\
@10.53.0.1 axfr -p 5300 > dig.out.ns1 || status=1
grep ";" dig.out.ns1
$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd example.nil.\
@10.53.0.1 axfr -p 5300 > dig.out.ns2 || status=1
grep ";" dig.out.ns2
$PERL ../digcomp.pl knowngood.ns1.before dig.out.ns1 || status=1
$PERL ../digcomp.pl knowngood.ns1.before dig.out.ns2 || status=1
$NSUPDATE < update.scp
sleep 15
$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd example.nil.\
@10.53.0.1 axfr -p 5300 > dig.out.ns1 || status=1
grep ";" dig.out.ns1
$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd example.nil.\
@10.53.0.1 axfr -p 5300 > dig.out.ns2 || status=1
grep ";" dig.out.ns2
$PERL ../digcomp.pl knowngood.ns1.after dig.out.ns1 || status=1
$PERL ../digcomp.pl knowngood.ns1.after dig.out.ns2 || status=1
echo "I: exit status: $status"
exit $status
server 10.53.0.1 5300
update add updated.example.nil. 600 A 10.10.10.1
update add updated.example.nil. 600 TXT Foo
update delete t.example.nil.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment