mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
further tidying of primary/secondary terminology in system tests
this changes most visble uses of master/slave terminology in tests.sh and most uses of 'type master' or 'type slave' in named.conf files. files in the checkconf test were not updated in order to confirm that the old syntax still works. rpzrecurse was also left mostly unchanged to avoid interference with DNSRPS.
This commit is contained in:
parent
68c384e118
commit
e43b3c1fa1
@ -48,12 +48,12 @@ zone "." {
|
||||
};
|
||||
|
||||
zone "example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "example.db";
|
||||
};
|
||||
|
||||
zone "tsigzone" {
|
||||
type master;
|
||||
type primary;
|
||||
file "tsigzone.db";
|
||||
allow-transfer { !key one; any; };
|
||||
};
|
||||
|
@ -48,12 +48,12 @@ zone "." {
|
||||
};
|
||||
|
||||
zone "example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "example.db";
|
||||
};
|
||||
|
||||
zone "tsigzone" {
|
||||
type master;
|
||||
type primary;
|
||||
file "tsigzone.db";
|
||||
/*
|
||||
* 0a00::/8 and 10/8 are the same bits, but different address
|
||||
|
@ -61,12 +61,12 @@ zone "." {
|
||||
};
|
||||
|
||||
zone "example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "example.db";
|
||||
};
|
||||
|
||||
zone "tsigzone" {
|
||||
type master;
|
||||
type primary;
|
||||
file "tsigzone.db";
|
||||
allow-transfer { !reject; accept; };
|
||||
};
|
||||
|
@ -60,12 +60,12 @@ zone "." {
|
||||
};
|
||||
|
||||
zone "example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "example.db";
|
||||
};
|
||||
|
||||
zone "tsigzone" {
|
||||
type master;
|
||||
type primary;
|
||||
file "tsigzone.db";
|
||||
allow-transfer { !rejectkeys; !rejectaddrs; !check1; !check2; any; };
|
||||
};
|
||||
|
@ -50,12 +50,12 @@ zone "." {
|
||||
};
|
||||
|
||||
zone "example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "example.db";
|
||||
};
|
||||
|
||||
zone "tsigzone" {
|
||||
type master;
|
||||
type primary;
|
||||
file "tsigzone.db";
|
||||
allow-transfer { !key one; any; };
|
||||
};
|
||||
|
@ -33,6 +33,6 @@ key rndc_key {
|
||||
};
|
||||
|
||||
zone "existing" {
|
||||
type master;
|
||||
type primary;
|
||||
file "existing.db";
|
||||
};
|
||||
|
@ -168,7 +168,7 @@ status=`expr $status + $ret`
|
||||
echo_i "testing allow-transfer ACLs against ns3 (no existing zones)"
|
||||
|
||||
echo_i "calling addzone example.com on ns3"
|
||||
$RNDCCMD 10.53.0.3 addzone 'example.com {type master; file "example.db"; }; '
|
||||
$RNDCCMD 10.53.0.3 addzone 'example.com {type primary; file "example.db"; }; '
|
||||
sleep 1
|
||||
|
||||
t=`expr $t + 1`
|
||||
@ -197,7 +197,7 @@ status=`expr $status + $ret`
|
||||
echo_i "testing allow-transfer ACLs against ns4 (1 pre-existing zone)"
|
||||
|
||||
echo_i "calling addzone example.com on ns4"
|
||||
$RNDCCMD 10.53.0.4 addzone 'example.com {type master; file "example.db"; }; '
|
||||
$RNDCCMD 10.53.0.4 addzone 'example.com {type primary; file "example.db"; }; '
|
||||
sleep 1
|
||||
|
||||
t=`expr $t + 1`
|
||||
|
@ -30,31 +30,31 @@ controls {
|
||||
};
|
||||
|
||||
zone "." {
|
||||
type master;
|
||||
type primary;
|
||||
file "root.db";
|
||||
};
|
||||
|
||||
zone "rt.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "rt.db";
|
||||
};
|
||||
|
||||
zone "naptr.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "naptr.db";
|
||||
};
|
||||
|
||||
zone "rt2.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "rt2.db";
|
||||
};
|
||||
|
||||
zone "naptr2.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "naptr2.db";
|
||||
};
|
||||
|
||||
zone "nid.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "nid.db";
|
||||
};
|
||||
|
@ -30,31 +30,31 @@ controls {
|
||||
};
|
||||
|
||||
zone "." {
|
||||
type master;
|
||||
type primary;
|
||||
file "root.db";
|
||||
};
|
||||
|
||||
zone "rt.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "rt.db";
|
||||
};
|
||||
|
||||
zone "naptr.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "naptr.db";
|
||||
};
|
||||
|
||||
zone "rt2.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "rt2.db";
|
||||
};
|
||||
|
||||
zone "naptr2.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "naptr2.db";
|
||||
};
|
||||
|
||||
zone "nid.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "nid.db";
|
||||
};
|
||||
|
@ -31,31 +31,31 @@ controls {
|
||||
};
|
||||
|
||||
zone "." {
|
||||
type master;
|
||||
type primary;
|
||||
file "root.db";
|
||||
};
|
||||
|
||||
zone "rt.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "rt.db";
|
||||
};
|
||||
|
||||
zone "naptr.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "naptr.db";
|
||||
};
|
||||
|
||||
zone "rt2.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "rt2.db";
|
||||
};
|
||||
|
||||
zone "naptr2.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "naptr2.db";
|
||||
};
|
||||
|
||||
zone "nid.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "nid.db";
|
||||
};
|
||||
|
@ -30,41 +30,41 @@ controls {
|
||||
};
|
||||
|
||||
zone "." {
|
||||
type master;
|
||||
type primary;
|
||||
file "root.db";
|
||||
};
|
||||
|
||||
zone "mx.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "mx.db";
|
||||
};
|
||||
|
||||
zone "srv.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "srv.db";
|
||||
};
|
||||
|
||||
zone "rt.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "rt.db";
|
||||
};
|
||||
|
||||
zone "naptr.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "naptr.db";
|
||||
};
|
||||
|
||||
zone "rt2.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "rt2.db";
|
||||
};
|
||||
|
||||
zone "naptr2.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "naptr2.db";
|
||||
};
|
||||
|
||||
zone "nid.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "nid.db";
|
||||
};
|
||||
|
@ -23,6 +23,6 @@ options {
|
||||
};
|
||||
|
||||
zone "." {
|
||||
type master;
|
||||
type primary;
|
||||
file "root.db";
|
||||
};
|
||||
|
@ -30,11 +30,11 @@ zone "." {
|
||||
};
|
||||
|
||||
zone "ex" {
|
||||
type master;
|
||||
type primary;
|
||||
file "ex.db";
|
||||
};
|
||||
|
||||
zone "ex2" {
|
||||
type master;
|
||||
type primary;
|
||||
file "ex2.db";
|
||||
};
|
||||
|
@ -24,7 +24,7 @@ rm -f ./ns3/*.nzd ./ns3/*.nzd-lock
|
||||
rm -f ./ns2/core*
|
||||
rm -f ./ns2/inline.db.jbk
|
||||
rm -f ./ns2/inline.db.signed
|
||||
rm -f ./ns2/inlineslave.bk*
|
||||
rm -f ./ns2/inlinesec.bk*
|
||||
rm -rf ./ns2/new-zones
|
||||
rm -f ./ns*/named.lock
|
||||
rm -f ./ns*/named.run ./ns*/named.run.prev
|
||||
@ -32,7 +32,7 @@ rm -f ./ns2/nzf-*
|
||||
rm -f ./ns3/named.conf
|
||||
rm -f ./ns3/*.nzf ./ns3/*.nzf~
|
||||
rm -f ./ns3/*.nzd ns3/*.nzd-lock
|
||||
rm -f ./ns3/inlineslave.db
|
||||
rm -f ./ns3/inlinesec.db
|
||||
rm -f ./ns1/redirect.db
|
||||
rm -f ./ns2/redirect.db
|
||||
rm -f ./ns2/redirect.bk
|
||||
|
@ -7,7 +7,7 @@
|
||||
; See the COPYRIGHT file distributed with this work for additional
|
||||
; information regarding copyright ownership.
|
||||
|
||||
$ORIGIN inlineslave.example.
|
||||
$ORIGIN inlinesec.example.
|
||||
$TTL 300 ; 5 minutes
|
||||
@ IN SOA mname1. . (
|
||||
1 ; serial
|
@ -33,9 +33,9 @@ zone "." {
|
||||
file "../../common/root.hint";
|
||||
};
|
||||
|
||||
zone "inlineslave.example" {
|
||||
type master;
|
||||
file "inlineslave.db";
|
||||
zone "inlinesec.example" {
|
||||
type primary;
|
||||
file "inlinesec.db";
|
||||
};
|
||||
|
||||
zone "." {
|
||||
|
@ -1 +1 @@
|
||||
zone previous.example { type master; file "previous.db"; };
|
||||
zone previous.example { type primary; file "previous.db"; };
|
||||
|
@ -31,11 +31,11 @@ zone "." {
|
||||
};
|
||||
|
||||
zone "normal.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "normal.db";
|
||||
};
|
||||
|
||||
zone "finaldot.example." {
|
||||
type master;
|
||||
type primary;
|
||||
file "normal.db";
|
||||
};
|
||||
|
@ -37,7 +37,7 @@ view internal {
|
||||
};
|
||||
|
||||
zone "policy" {
|
||||
type master;
|
||||
type primary;
|
||||
file "normal.db";
|
||||
};
|
||||
};
|
||||
|
@ -37,7 +37,7 @@ view internal {
|
||||
};
|
||||
|
||||
zone "policy" {
|
||||
type master;
|
||||
type primary;
|
||||
file "normal.db";
|
||||
};
|
||||
};
|
||||
|
@ -26,10 +26,10 @@ options {
|
||||
};
|
||||
|
||||
zone "." {
|
||||
type master;
|
||||
type primary;
|
||||
file "redirect.db";
|
||||
};
|
||||
|
||||
primaries "testmaster" {
|
||||
primaries "test" {
|
||||
192.5.5.241;
|
||||
};
|
||||
|
@ -53,7 +53,7 @@ fi
|
||||
|
||||
echo_i "adding new zone ($n)"
|
||||
ret=0
|
||||
$RNDCCMD 10.53.0.2 addzone 'added.example { type master; file "added.db"; };' 2>&1 | sed 's/^/I:ns2 /'
|
||||
$RNDCCMD 10.53.0.2 addzone 'added.example { type primary; file "added.db"; };' 2>&1 | sed 's/^/I:ns2 /'
|
||||
_check_adding_new_zone () (
|
||||
$DIG $DIGOPTS @10.53.0.2 a.added.example a > dig.out.ns2.$n &&
|
||||
grep 'status: NOERROR' dig.out.ns2.$n > /dev/null &&
|
||||
@ -84,7 +84,8 @@ status=`expr $status + $ret`
|
||||
|
||||
echo_i "adding a zone that requires quotes ($n)"
|
||||
ret=0
|
||||
$RNDCCMD 10.53.0.2 addzone '"32/1.0.0.127-in-addr.added.example" { check-names ignore; type master; file "added.db"; };' 2>&1 | sed 's/^/I:ns2 /'
|
||||
$RNDCCMD 10.53.0.2 addzone '"32/1.0.0.127-in-addr.added.example" {
|
||||
check-names ignore; type primary; file "added.db"; };' 2>&1 | sed 's/^/I:ns2 /'
|
||||
_check_zone_that_requires_quotes() (
|
||||
$DIG $DIGOPTS @10.53.0.2 "a.32/1.0.0.127-in-addr.added.example" a > dig.out.ns2.$n &&
|
||||
grep 'status: NOERROR' dig.out.ns2.$n > /dev/null &&
|
||||
@ -97,7 +98,7 @@ status=`expr $status + $ret`
|
||||
|
||||
echo_i "adding a zone with a quote in the name ($n)"
|
||||
ret=0
|
||||
$RNDCCMD 10.53.0.2 addzone '"foo\"bar.example" { check-names ignore; type master; file "added.db"; };' 2>&1 | sed 's/^/I:ns2 /'
|
||||
$RNDCCMD 10.53.0.2 addzone '"foo\"bar.example" { check-names ignore; type primary; file "added.db"; };' 2>&1 | sed 's/^/I:ns2 /'
|
||||
_check_zone_with_a_quote() (
|
||||
$DIG $DIGOPTS @10.53.0.2 "a.foo\"bar.example" a > dig.out.ns2.$n &&
|
||||
grep 'status: NOERROR' dig.out.ns2.$n > /dev/null &&
|
||||
@ -108,11 +109,11 @@ n=`expr $n + 1`
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo_i "adding new zone with missing master file ($n)"
|
||||
echo_i "adding new zone with missing file ($n)"
|
||||
ret=0
|
||||
$DIG $DIGOPTS +all @10.53.0.2 a.missing.example a > dig.out.ns2.pre.$n || ret=1
|
||||
grep "status: REFUSED" dig.out.ns2.pre.$n > /dev/null || ret=1
|
||||
$RNDCCMD 10.53.0.2 addzone 'missing.example { type master; file "missing.db"; };' 2> rndc.out.ns2.$n
|
||||
$RNDCCMD 10.53.0.2 addzone 'missing.example { type primary; file "missing.db"; };' 2> rndc.out.ns2.$n
|
||||
grep "file not found" rndc.out.ns2.$n > /dev/null || ret=1
|
||||
$DIG $DIGOPTS +all @10.53.0.2 a.missing.example a > dig.out.ns2.post.$n || ret=1
|
||||
grep "status: REFUSED" dig.out.ns2.post.$n > /dev/null || ret=1
|
||||
@ -134,7 +135,7 @@ fi
|
||||
echo_i "checking rndc showzone with previously added zone ($n)"
|
||||
ret=0
|
||||
$RNDCCMD 10.53.0.2 showzone previous.example > rndc.out.ns2.$n
|
||||
expected='zone "previous.example" { type master; file "previous.db"; };'
|
||||
expected='zone "previous.example" { type primary; file "previous.db"; };'
|
||||
[ "`cat rndc.out.ns2.$n`" = "$expected" ] || ret=1
|
||||
n=`expr $n + 1`
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
@ -212,7 +213,7 @@ status=`expr $status + $ret`
|
||||
echo_i "checking rndc showzone with a normally-loaded zone ($n)"
|
||||
ret=0
|
||||
$RNDCCMD 10.53.0.2 showzone normal.example > rndc.out.ns2.$n
|
||||
expected='zone "normal.example" { type master; file "normal.db"; };'
|
||||
expected='zone "normal.example" { type primary; file "normal.db"; };'
|
||||
[ "`cat rndc.out.ns2.$n`" = "$expected" ] || ret=1
|
||||
n=`expr $n + 1`
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
@ -221,7 +222,7 @@ status=`expr $status + $ret`
|
||||
echo_i "checking rndc showzone with a normally-loaded zone with trailing dot ($n)"
|
||||
ret=0
|
||||
$RNDCCMD 10.53.0.2 showzone finaldot.example > rndc.out.ns2.$n
|
||||
expected='zone "finaldot.example." { type master; file "normal.db"; };'
|
||||
expected='zone "finaldot.example." { type primary; file "normal.db"; };'
|
||||
[ "`cat rndc.out.ns2.$n`" = "$expected" ] || ret=1
|
||||
n=`expr $n + 1`
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
@ -271,79 +272,79 @@ n=`expr $n + 1`
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo_i "attempting to add master zone with inline signing ($n)"
|
||||
$RNDCCMD 10.53.0.2 addzone 'inline.example { type master; file "inline.db"; inline-signing yes; };' 2>&1 | sed 's/^/I:ns2 /'
|
||||
_check_add_master_zone_with_inline() (
|
||||
echo_i "attempting to add primary zone with inline signing ($n)"
|
||||
$RNDCCMD 10.53.0.2 addzone 'inline.example { type primary; file "inline.db"; inline-signing yes; };' 2>&1 | sed 's/^/I:ns2 /'
|
||||
_check_add_primary_zone_with_inline() (
|
||||
$DIG $DIGOPTS @10.53.0.2 a.inline.example a > dig.out.ns2.$n &&
|
||||
grep 'status: NOERROR' dig.out.ns2.$n > /dev/null &&
|
||||
grep '^a.inline.example' dig.out.ns2.$n > /dev/null
|
||||
)
|
||||
retry_quiet 5 _check_add_master_zone_with_inline || ret=1
|
||||
retry_quiet 5 _check_add_primary_zone_with_inline || ret=1
|
||||
n=`expr $n + 1`
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo_i "attempting to add master zone with inline signing and missing master ($n)"
|
||||
echo_i "attempting to add primary zone with inline signing and missing file ($n)"
|
||||
ret=0
|
||||
$RNDCCMD 10.53.0.2 addzone 'inlinemissing.example { type master; file "missing.db"; inline-signing yes; };' 2> rndc.out.ns2.$n
|
||||
$RNDCCMD 10.53.0.2 addzone 'inlinemissing.example { type primary; file "missing.db"; inline-signing yes; };' 2> rndc.out.ns2.$n
|
||||
grep "file not found" rndc.out.ns2.$n > /dev/null || ret=1
|
||||
n=`expr $n + 1`
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo_i "attempting to add slave zone with inline signing ($n)"
|
||||
$RNDCCMD 10.53.0.2 addzone 'inlineslave.example { type slave; masters { 10.53.0.1; }; file "inlineslave.bk"; inline-signing yes; };' 2>&1 | sed 's/^/I:ns2 /'
|
||||
_check_add_slave_with_inline() (
|
||||
$DIG $DIGOPTS @10.53.0.2 a.inlineslave.example a > dig.out.ns2.$n &&
|
||||
echo_i "attempting to add secondary zone with inline signing ($n)"
|
||||
$RNDCCMD 10.53.0.2 addzone 'inlinesec.example { type secondary; primaries { 10.53.0.1; }; file "inlinesec.bk"; inline-signing yes; };' 2>&1 | sed 's/^/I:ns2 /'
|
||||
_check_add_secondary_with_inline() (
|
||||
$DIG $DIGOPTS @10.53.0.2 a.inlinesec.example a > dig.out.ns2.$n &&
|
||||
grep 'status: NOERROR' dig.out.ns2.$n > /dev/null &&
|
||||
grep '^a.inlineslave.example' dig.out.ns2.$n > /dev/null
|
||||
grep '^a.inlinesec.example' dig.out.ns2.$n > /dev/null
|
||||
)
|
||||
retry_quiet 5 _check_add_slave_with_inline || ret=1
|
||||
retry_quiet 5 _check_add_secondary_with_inline || ret=1
|
||||
n=`expr $n + 1`
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo_i "attempting to delete slave zone with inline signing ($n)"
|
||||
echo_i "attempting to delete secondary zone with inline signing ($n)"
|
||||
ret=0
|
||||
retry_quiet 10 test -f ns2/inlineslave.bk.signed -a -f ns2/inlineslave.bk || ret=1
|
||||
$RNDCCMD 10.53.0.2 delzone inlineslave.example > rndc.out2.test$n 2>&1 || ret=1
|
||||
test -f inlineslave.bk ||
|
||||
grep '^inlineslave.bk$' rndc.out2.test$n > /dev/null || {
|
||||
echo_i "failed to report inlineslave.bk"; ret=1;
|
||||
retry_quiet 10 test -f ns2/inlinesec.bk.signed -a -f ns2/inlinesec.bk || ret=1
|
||||
$RNDCCMD 10.53.0.2 delzone inlinesec.example > rndc.out2.test$n 2>&1 || ret=1
|
||||
test -f inlinesec.bk ||
|
||||
grep '^inlinesec.bk$' rndc.out2.test$n > /dev/null || {
|
||||
echo_i "failed to report inlinesec.bk"; ret=1;
|
||||
}
|
||||
test ! -f inlineslave.bk.signed ||
|
||||
grep '^inlineslave.bk.signed$' rndc.out2.test$n > /dev/null || {
|
||||
echo_i "failed to report inlineslave.bk.signed"; ret=1;
|
||||
test ! -f inlinesec.bk.signed ||
|
||||
grep '^inlinesec.bk.signed$' rndc.out2.test$n > /dev/null || {
|
||||
echo_i "failed to report inlinesec.bk.signed"; ret=1;
|
||||
}
|
||||
n=`expr $n + 1`
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo_i "restoring slave zone with inline signing ($n)"
|
||||
$RNDCCMD 10.53.0.2 addzone 'inlineslave.example { type slave; masters { 10.53.0.1; }; file "inlineslave.bk"; inline-signing yes; };' 2>&1 | sed 's/^/I:ns2 /'
|
||||
_check_restoring_slave_with_inline() (
|
||||
$DIG $DIGOPTS @10.53.0.2 a.inlineslave.example a > dig.out.ns2.$n &&
|
||||
echo_i "restoring secondary zone with inline signing ($n)"
|
||||
$RNDCCMD 10.53.0.2 addzone 'inlinesec.example { type secondary; primaries { 10.53.0.1; }; file "inlinesec.bk"; inline-signing yes; };' 2>&1 | sed 's/^/I:ns2 /'
|
||||
_check_restoring_secondary_with_inline() (
|
||||
$DIG $DIGOPTS @10.53.0.2 a.inlinesec.example a > dig.out.ns2.$n &&
|
||||
grep 'status: NOERROR' dig.out.ns2.$n > /dev/null &&
|
||||
grep '^a.inlineslave.example' dig.out.ns2.$n > /dev/null
|
||||
grep '^a.inlinesec.example' dig.out.ns2.$n > /dev/null
|
||||
)
|
||||
retry_quiet 5 _check_restoring_slave_with_inline || ret=1
|
||||
retry_quiet 5 _check_restoring_secondary_with_inline || ret=1
|
||||
n=`expr $n + 1`
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo_i "deleting slave zone with automatic zone file removal ($n)"
|
||||
echo_i "deleting secondary zone with automatic zone file removal ($n)"
|
||||
ret=0
|
||||
retry_quiet 10 test -f ns2/inlineslave.bk.signed -a -f ns2/inlineslave.bk || ret=1
|
||||
$RNDCCMD 10.53.0.2 delzone -clean inlineslave.example > /dev/null 2>&1
|
||||
retry_quiet 10 test ! -f ns2/inlineslave.bk.signed -a ! -f ns2/inlineslave.bk
|
||||
retry_quiet 10 test -f ns2/inlinesec.bk.signed -a -f ns2/inlinesec.bk || ret=1
|
||||
$RNDCCMD 10.53.0.2 delzone -clean inlinesec.example > /dev/null 2>&1
|
||||
retry_quiet 10 test ! -f ns2/inlinesec.bk.signed -a ! -f ns2/inlinesec.bk
|
||||
n=`expr $n + 1`
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo_i "modifying zone configuration ($n)"
|
||||
ret=0
|
||||
$RNDCCMD 10.53.0.2 addzone 'mod.example { type master; file "added.db"; };' 2>&1 | sed 's/^/ns2 /' | cat_i
|
||||
$RNDCCMD 10.53.0.2 addzone 'mod.example { type primary; file "added.db"; };' 2>&1 | sed 's/^/ns2 /' | cat_i
|
||||
$DIG +norec $DIGOPTS @10.53.0.2 mod.example ns > dig.out.ns2.1.$n || ret=1
|
||||
grep 'status: NOERROR' dig.out.ns2.1.$n > /dev/null || ret=1
|
||||
$RNDCCMD 10.53.0.2 modzone 'mod.example { type master; file "added.db"; allow-query { none; }; };' 2>&1 | sed 's/^/ns2 /' | cat_i
|
||||
$RNDCCMD 10.53.0.2 modzone 'mod.example { type primary; file "added.db"; allow-query { none; }; };' 2>&1 | sed 's/^/ns2 /' | cat_i
|
||||
$DIG +norec $DIGOPTS @10.53.0.2 mod.example ns > dig.out.ns2.2.$n || ret=1
|
||||
$RNDCCMD 10.53.0.2 showzone mod.example | grep 'allow-query { "none"; };' > /dev/null 2>&1 || ret=1
|
||||
n=`expr $n + 1`
|
||||
@ -352,7 +353,7 @@ status=`expr $status + $ret`
|
||||
|
||||
echo_i "check that adding a 'stub' zone works ($n)"
|
||||
ret=0
|
||||
$RNDCCMD 10.53.0.2 addzone 'stub.example { type stub; masters { 1.2.3.4; }; file "stub.example.bk"; };' > rndc.out.ns2.$n 2>&1 || ret=1
|
||||
$RNDCCMD 10.53.0.2 addzone 'stub.example { type stub; primaries { 1.2.3.4; }; file "stub.example.bk"; };' > rndc.out.ns2.$n 2>&1 || ret=1
|
||||
n=`expr $n + 1`
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
@ -364,22 +365,22 @@ n=`expr $n + 1`
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo_i "check that adding a 'master redirect' zone works ($n)"
|
||||
echo_i "check that adding a 'primary redirect' zone works ($n)"
|
||||
ret=0
|
||||
$RNDCCMD 10.53.0.2 addzone '"." { type redirect; file "redirect.db"; };' > rndc.out.ns2.$n 2>&1 || ret=1
|
||||
_check_add_master_redirect() (
|
||||
_check_add_primary_redirect() (
|
||||
$RNDCCMD 10.53.0.2 showzone -redirect > showzone.out.ns2.$n 2>&1 &&
|
||||
grep "type redirect;" showzone.out.ns2.$n > /dev/null &&
|
||||
$RNDCCMD 10.53.0.2 zonestatus -redirect > zonestatus.out.ns2.$n 2>&1 &&
|
||||
grep "type: redirect" zonestatus.out.ns2.$n > /dev/null &&
|
||||
grep "serial: 0" zonestatus.out.ns2.$n > /dev/null
|
||||
)
|
||||
retry_quiet 10 _check_add_master_redirect || ret=1
|
||||
retry_quiet 10 _check_add_primary_redirect || ret=1
|
||||
n=`expr $n + 1`
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo_i "check that reloading a added 'master redirect' zone works ($n)"
|
||||
echo_i "check that reloading a added 'primary redirect' zone works ($n)"
|
||||
ret=0
|
||||
sleep 1
|
||||
cp -f ns2/redirect.db.2 ns2/redirect.db
|
||||
@ -389,63 +390,63 @@ n=`expr $n + 1`
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo_i "check that retransfer of a added 'master redirect' zone fails ($n)"
|
||||
echo_i "check that retransfer of a added 'primary redirect' zone fails ($n)"
|
||||
ret=0
|
||||
$RNDCCMD 10.53.0.2 retransfer -redirect > rndc.out.ns2.$n 2>&1 && ret=1
|
||||
n=`expr $n + 1`
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo_i "check that deleting a 'master redirect' zone works ($n)"
|
||||
echo_i "check that deleting a 'primary redirect' zone works ($n)"
|
||||
ret=0
|
||||
$RNDCCMD 10.53.0.2 delzone -redirect > rndc.out.ns2.$n 2>&1 || ret=1
|
||||
_check_deleting_master_redirect() (
|
||||
_check_deleting_primary_redirect() (
|
||||
$RNDCCMD 10.53.0.2 showzone -redirect > showzone.out.ns2.$n 2>&1 || true
|
||||
grep 'not found' showzone.out.ns2.$n > /dev/null
|
||||
)
|
||||
retry_quiet 10 _check_deleting_master_redirect || ret=1
|
||||
retry_quiet 10 _check_deleting_primary_redirect || ret=1
|
||||
n=`expr $n + 1`
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo_i "check that adding a 'slave redirect' zone works ($n)"
|
||||
echo_i "check that adding a 'secondary redirect' zone works ($n)"
|
||||
ret=0
|
||||
$RNDCCMD 10.53.0.2 addzone '"." { type redirect; masters { 10.53.0.3;}; file "redirect.bk"; };' > rndc.out.ns2.$n 2>&1 || ret=1
|
||||
_check_adding_slave_redirect() (
|
||||
$RNDCCMD 10.53.0.2 addzone '"." { type redirect; primaries { 10.53.0.3;}; file "redirect.bk"; };' > rndc.out.ns2.$n 2>&1 || ret=1
|
||||
_check_adding_secondary_redirect() (
|
||||
$RNDCCMD 10.53.0.2 showzone -redirect > showzone.out.ns2.$n 2>&1 &&
|
||||
grep "type redirect;" showzone.out.ns2.$n > /dev/null &&
|
||||
$RNDCCMD 10.53.0.2 zonestatus -redirect > zonestatus.out.ns2.$n 2>&1 &&
|
||||
grep "type: redirect" zonestatus.out.ns2.$n > /dev/null &&
|
||||
grep "serial: 0" zonestatus.out.ns2.$n > /dev/null
|
||||
)
|
||||
retry_quiet 10 _check_adding_slave_redirect || ret=1
|
||||
retry_quiet 10 _check_adding_secondary_redirect || ret=1
|
||||
n=`expr $n + 1`
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo_i "check that retransfering a added 'slave redirect' zone works ($n)"
|
||||
echo_i "check that retransfering a added 'secondary redirect' zone works ($n)"
|
||||
ret=0
|
||||
cp -f ns3/redirect.db.2 ns3/redirect.db
|
||||
$RNDCCMD 10.53.0.3 reload . > showzone.out.ns3.$n 2>&1 || ret=1
|
||||
_check_retransfering_slave_redirect() (
|
||||
_check_retransfering_secondary_redirect() (
|
||||
$RNDCCMD 10.53.0.2 retransfer -redirect > rndc.out.ns2.$n 2>&1 &&
|
||||
$RNDCCMD 10.53.0.2 zonestatus -redirect > zonestatus.out.ns2.$n 2>&1 &&
|
||||
grep "type: redirect" zonestatus.out.ns2.$n > /dev/null &&
|
||||
grep "serial: 1" zonestatus.out.ns2.$n > /dev/null
|
||||
)
|
||||
retry_quiet 10 _check_retransfering_slave_redirect || ret=1
|
||||
retry_quiet 10 _check_retransfering_secondary_redirect || ret=1
|
||||
n=`expr $n + 1`
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo_i "check that deleting a 'slave redirect' zone works ($n)"
|
||||
echo_i "check that deleting a 'secondary redirect' zone works ($n)"
|
||||
ret=0
|
||||
$RNDCCMD 10.53.0.2 delzone -redirect > rndc.out.ns2.$n 2>&1 || ret=1
|
||||
_check_deleting_slave_redirect() (
|
||||
_check_deleting_secondary_redirect() (
|
||||
$RNDCCMD 10.53.0.2 showzone -redirect > showzone.out.ns2.$n 2>&1 || true
|
||||
grep 'not found' showzone.out.ns2.$n > /dev/null
|
||||
)
|
||||
retry_quiet 10 _check_deleting_slave_redirect || ret=1
|
||||
retry_quiet 10 _check_deleting_secondary_redirect || ret=1
|
||||
n=`expr $n + 1`
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
@ -499,7 +500,7 @@ $DIG +norec $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.added.example a > dig.out.ns2.int
|
||||
grep 'status: NOERROR' dig.out.ns2.intpre.$n > /dev/null || ret=1
|
||||
$DIG +norec $DIGOPTS @10.53.0.4 -b 10.53.0.4 a.added.example a > dig.out.ns2.extpre.$n || ret=1
|
||||
grep 'status: REFUSED' dig.out.ns2.extpre.$n > /dev/null || ret=1
|
||||
$RNDCCMD 10.53.0.2 addzone 'added.example in external { type master; file "added.db"; };' 2>&1 | sed 's/^/I:ns2 /'
|
||||
$RNDCCMD 10.53.0.2 addzone 'added.example in external { type primary; file "added.db"; };' 2>&1 | sed 's/^/I:ns2 /'
|
||||
$DIG +norec $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.added.example a > dig.out.ns2.int.$n || ret=1
|
||||
grep 'status: NOERROR' dig.out.ns2.int.$n > /dev/null || ret=1
|
||||
$DIG +norec $DIGOPTS @10.53.0.4 -b 10.53.0.4 a.added.example a > dig.out.ns2.ext.$n || ret=1
|
||||
@ -546,9 +547,9 @@ status=`expr $status + $ret`
|
||||
echo_i "checking rndc showzone with newly added zone ($n)"
|
||||
_check_rndc_showzone_newly_added() (
|
||||
if [ -z "$NZD" ]; then
|
||||
expected='zone "added.example" in external { type master; file "added.db"; };'
|
||||
expected='zone "added.example" in external { type primary; file "added.db"; };'
|
||||
else
|
||||
expected='zone "added.example" { type master; file "added.db"; };'
|
||||
expected='zone "added.example" { type primary; file "added.db"; };'
|
||||
fi
|
||||
$RNDCCMD 10.53.0.2 showzone added.example in external > rndc.out.ns2.$n 2>/dev/null &&
|
||||
[ "`cat rndc.out.ns2.$n`" = "$expected" ]
|
||||
@ -575,7 +576,7 @@ echo_i "attempting to add zone to internal view ($n)"
|
||||
ret=0
|
||||
$DIG +norec $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.added.example a > dig.out.ns2.pre.$n || ret=1
|
||||
grep 'status: NOERROR' dig.out.ns2.pre.$n > /dev/null || ret=1
|
||||
$RNDCCMD 10.53.0.2 addzone 'added.example in internal { type master; file "added.db"; };' 2> rndc.out.ns2.$n
|
||||
$RNDCCMD 10.53.0.2 addzone 'added.example in internal { type primary; file "added.db"; };' 2> rndc.out.ns2.$n
|
||||
grep "permission denied" rndc.out.ns2.$n > /dev/null || ret=1
|
||||
$DIG $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.added.example a > dig.out.ns2.int.$n || ret=1
|
||||
grep 'status: NOERROR' dig.out.ns2.int.$n > /dev/null || ret=1
|
||||
@ -595,7 +596,7 @@ status=`expr $status + $ret`
|
||||
|
||||
echo_i "adding new zone again to external view ($n)"
|
||||
ret=0
|
||||
$RNDCCMD 10.53.0.2 addzone 'added.example in external { type master; file "added.db"; };' 2>&1 | sed 's/^/I:ns2 /'
|
||||
$RNDCCMD 10.53.0.2 addzone 'added.example in external { type primary; file "added.db"; };' 2>&1 | sed 's/^/I:ns2 /'
|
||||
_check_adding_new_zone_again_external() (
|
||||
$DIG +norec $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.added.example a > dig.out.ns2.int.$n &&
|
||||
grep 'status: NOERROR' dig.out.ns2.int.$n > /dev/null &&
|
||||
@ -640,7 +641,7 @@ $DIG +norec $DIGOPTS @10.53.0.4 -b 10.53.0.4 a.added.example a > dig.out.ns2.ext
|
||||
grep 'status: REFUSED' dig.out.ns2.extpre.$n > /dev/null || ret=1
|
||||
$DIG +norec $DIGOPTS @10.53.0.5 -b 10.53.0.5 a.added.example a > dig.out.ns2.dirpre.$n || ret=1
|
||||
grep 'status: REFUSED' dig.out.ns2.dirpre.$n > /dev/null || ret=1
|
||||
$RNDCCMD 10.53.0.2 addzone 'added.example in directory { type master; file "added.db"; };' 2>&1 | sed 's/^/I:ns2 /'
|
||||
$RNDCCMD 10.53.0.2 addzone 'added.example in directory { type primary; file "added.db"; };' 2>&1 | sed 's/^/I:ns2 /'
|
||||
$DIG +norec $DIGOPTS @10.53.0.2 -b 10.53.0.2 a.added.example a > dig.out.ns2.int.$n || ret=1
|
||||
grep 'status: NOERROR' dig.out.ns2.int.$n > /dev/null || ret=1
|
||||
$DIG +norec $DIGOPTS @10.53.0.4 -b 10.53.0.4 a.added.example a > dig.out.ns2.ext.$n || ret=1
|
||||
@ -686,10 +687,10 @@ status=`expr $status + $ret`
|
||||
|
||||
echo_i "check delzone after reconfig failure ($n)"
|
||||
ret=0
|
||||
$RNDCCMD 10.53.0.3 addzone 'inlineslave.example. IN { type slave; file "inlineslave.db"; masterfile-format text; primaries { testmaster; }; };' > /dev/null 2>&1 || ret=1
|
||||
$RNDCCMD 10.53.0.3 addzone 'inlinesec.example. IN { type secondary; file "inlinesec.db"; masterfile-format text; primaries { test; }; };' > /dev/null 2>&1 || ret=1
|
||||
copy_setports ns3/named2.conf.in ns3/named.conf
|
||||
rndc_reconfig ns3 10.53.0.3
|
||||
$RNDCCMD 10.53.0.3 delzone inlineslave.example > /dev/null 2>&1 || ret=1
|
||||
$RNDCCMD 10.53.0.3 delzone inlinesec.example > /dev/null 2>&1 || ret=1
|
||||
n=`expr $n + 1`
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
@ -698,9 +699,9 @@ if ! $FEATURETEST --with-lmdb
|
||||
then
|
||||
echo_i "check that addzone is fully reversed on failure (--with-lmdb=no) ($n)"
|
||||
ret=0
|
||||
$RNDCCMD 10.53.0.3 addzone "test1.baz" '{ type master; file "e.db"; };' > /dev/null 2>&1 || ret=1
|
||||
$RNDCCMD 10.53.0.3 addzone "test2.baz" '{ type master; file "dne.db"; };' > /dev/null 2>&1 && ret=1
|
||||
$RNDCCMD 10.53.0.3 addzone "test3.baz" '{ type master; file "e.db"; };' > /dev/null 2>&1 || ret=1
|
||||
$RNDCCMD 10.53.0.3 addzone "test1.baz" '{ type primary; file "e.db"; };' > /dev/null 2>&1 || ret=1
|
||||
$RNDCCMD 10.53.0.3 addzone "test2.baz" '{ type primary; file "dne.db"; };' > /dev/null 2>&1 && ret=1
|
||||
$RNDCCMD 10.53.0.3 addzone "test3.baz" '{ type primary; file "e.db"; };' > /dev/null 2>&1 || ret=1
|
||||
$RNDCCMD 10.53.0.3 delzone "test3.baz" > /dev/null 2>&1 || ret=1
|
||||
grep test2.baz ns3/_default.nzf > /dev/null && ret=1
|
||||
n=`expr $n + 1`
|
||||
@ -715,13 +716,13 @@ _check_version_bind() (
|
||||
|
||||
echo_i "check that named restarts with multiple added zones ($n)"
|
||||
ret=0
|
||||
$RNDCCMD 10.53.0.3 addzone "test4.baz" '{ type master; file "e.db"; };' > /dev/null 2>&1 || ret=1
|
||||
$RNDCCMD 10.53.0.3 addzone "test5.baz" '{ type master; file "e.db"; };' > /dev/null 2>&1 || ret=1
|
||||
$RNDCCMD 10.53.0.3 addzone '"test/.baz"' '{ type master; check-names ignore; file "e.db"; };' > /dev/null 2>&1 || ret=1
|
||||
$RNDCCMD 10.53.0.3 addzone '"test\".baz"' '{ type master; check-names ignore; file "e.db"; };' > /dev/null 2>&1 || ret=1
|
||||
$RNDCCMD 10.53.0.3 addzone '"test\\.baz"' '{ type master; check-names ignore; file "e.db"; };' > /dev/null 2>&1 || ret=1
|
||||
$RNDCCMD 10.53.0.3 addzone '"test\032.baz"' '{ type master; check-names ignore; file "e.db"; };' > /dev/null 2>&1 || ret=1
|
||||
$RNDCCMD 10.53.0.3 addzone '"test\010.baz"' '{ type master; check-names ignore; file "e.db"; };' > /dev/null 2>&1 || ret=1
|
||||
$RNDCCMD 10.53.0.3 addzone "test4.baz" '{ type primary; file "e.db"; };' > /dev/null 2>&1 || ret=1
|
||||
$RNDCCMD 10.53.0.3 addzone "test5.baz" '{ type primary; file "e.db"; };' > /dev/null 2>&1 || ret=1
|
||||
$RNDCCMD 10.53.0.3 addzone '"test/.baz"' '{ type primary; check-names ignore; file "e.db"; };' > /dev/null 2>&1 || ret=1
|
||||
$RNDCCMD 10.53.0.3 addzone '"test\".baz"' '{ type primary; check-names ignore; file "e.db"; };' > /dev/null 2>&1 || ret=1
|
||||
$RNDCCMD 10.53.0.3 addzone '"test\\.baz"' '{ type primary; check-names ignore; file "e.db"; };' > /dev/null 2>&1 || ret=1
|
||||
$RNDCCMD 10.53.0.3 addzone '"test\032.baz"' '{ type primary; check-names ignore; file "e.db"; };' > /dev/null 2>&1 || ret=1
|
||||
$RNDCCMD 10.53.0.3 addzone '"test\010.baz"' '{ type primary; check-names ignore; file "e.db"; };' > /dev/null 2>&1 || ret=1
|
||||
stop_server addzone ns3
|
||||
start_server --noclean --restart --port ${PORT} addzone ns3 || ret=1
|
||||
retry_quiet 10 _check_version_bind || ret=1
|
||||
|
@ -18,6 +18,6 @@ options {
|
||||
};
|
||||
|
||||
zone "." {
|
||||
type master;
|
||||
type primary;
|
||||
file "root.db";
|
||||
};
|
||||
|
@ -25,6 +25,6 @@ zone "." {
|
||||
};
|
||||
|
||||
zone "normal.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
};
|
||||
|
@ -26,6 +26,6 @@ zone "." {
|
||||
};
|
||||
|
||||
zone "normal.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
};
|
||||
|
@ -26,6 +26,6 @@ zone "." {
|
||||
};
|
||||
|
||||
zone "normal.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
};
|
||||
|
@ -26,6 +26,6 @@ zone "." {
|
||||
};
|
||||
|
||||
zone "normal.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
};
|
||||
|
@ -26,6 +26,6 @@ zone "." {
|
||||
};
|
||||
|
||||
zone "normal.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
};
|
||||
|
@ -26,6 +26,6 @@ zone "." {
|
||||
};
|
||||
|
||||
zone "normal.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
};
|
||||
|
@ -28,6 +28,6 @@ zone "." {
|
||||
};
|
||||
|
||||
zone "normal.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
};
|
||||
|
@ -28,6 +28,6 @@ zone "." {
|
||||
};
|
||||
|
||||
zone "normal.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
};
|
||||
|
@ -28,6 +28,6 @@ zone "." {
|
||||
};
|
||||
|
||||
zone "normal.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
};
|
||||
|
@ -31,6 +31,6 @@ zone "." {
|
||||
};
|
||||
|
||||
zone "normal.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
};
|
||||
|
@ -37,6 +37,6 @@ zone "." {
|
||||
};
|
||||
|
||||
zone "normal.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
};
|
||||
|
@ -31,6 +31,6 @@ zone "." {
|
||||
};
|
||||
|
||||
zone "normal.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
};
|
||||
|
@ -27,7 +27,7 @@ view "internal" {
|
||||
};
|
||||
|
||||
zone "normal.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
};
|
||||
};
|
||||
|
@ -29,7 +29,7 @@ view "internal" {
|
||||
};
|
||||
|
||||
zone "normal.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
};
|
||||
|
||||
|
@ -29,7 +29,7 @@ view "internal" {
|
||||
};
|
||||
|
||||
zone "normal.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
};
|
||||
};
|
||||
|
@ -29,7 +29,7 @@ view "internal" {
|
||||
};
|
||||
|
||||
zone "normal.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
};
|
||||
};
|
||||
|
@ -29,7 +29,7 @@ view "internal" {
|
||||
};
|
||||
|
||||
zone "normal.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
};
|
||||
};
|
||||
|
@ -29,7 +29,7 @@ view "internal" {
|
||||
};
|
||||
|
||||
zone "normal.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
};
|
||||
};
|
||||
|
@ -31,7 +31,7 @@ view "internal" {
|
||||
};
|
||||
|
||||
zone "normal.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
};
|
||||
|
||||
|
@ -31,7 +31,7 @@ view "internal" {
|
||||
};
|
||||
|
||||
zone "normal.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
};
|
||||
};
|
||||
|
@ -31,7 +31,7 @@ view "internal" {
|
||||
};
|
||||
|
||||
zone "normal.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
};
|
||||
};
|
||||
|
@ -34,7 +34,7 @@ view "internal" {
|
||||
};
|
||||
|
||||
zone "normal.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
};
|
||||
};
|
||||
|
@ -41,7 +41,7 @@ view "internal" {
|
||||
};
|
||||
|
||||
zone "normal.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
};
|
||||
};
|
||||
|
@ -34,7 +34,7 @@ view "internal" {
|
||||
};
|
||||
|
||||
zone "normal.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
};
|
||||
};
|
||||
|
@ -30,7 +30,7 @@ view "internal" {
|
||||
};
|
||||
|
||||
zone "normal.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
};
|
||||
|
||||
|
@ -30,7 +30,7 @@ view "internal" {
|
||||
};
|
||||
|
||||
zone "normal.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
};
|
||||
};
|
||||
|
@ -39,67 +39,67 @@ zone "." {
|
||||
};
|
||||
|
||||
zone "normal.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
};
|
||||
|
||||
zone "any.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
allow-query { any; };
|
||||
};
|
||||
|
||||
zone "none.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
allow-query { none; };
|
||||
};
|
||||
|
||||
zone "addrallow.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
allow-query { 10.53.0.2; };
|
||||
};
|
||||
|
||||
zone "addrnotallow.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
allow-query { 10.53.0.1; };
|
||||
};
|
||||
|
||||
zone "addrdisallow.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
allow-query { ! 10.53.0.2; };
|
||||
};
|
||||
|
||||
zone "aclallow.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
allow-query { accept; };
|
||||
};
|
||||
|
||||
zone "aclnotallow.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
allow-query { badaccept; };
|
||||
};
|
||||
|
||||
zone "acldisallow.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
allow-query { ! accept; };
|
||||
};
|
||||
|
||||
/* Also usable for testing key not allowed */
|
||||
zone "keyallow.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
allow-query { key one; };
|
||||
};
|
||||
|
||||
zone "keydisallow.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
allow-query { ! key one; };
|
||||
};
|
||||
|
@ -26,7 +26,7 @@ zone "." {
|
||||
};
|
||||
|
||||
zone "normal.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
allow-query { any; };
|
||||
};
|
||||
|
@ -26,7 +26,7 @@ zone "." {
|
||||
};
|
||||
|
||||
zone "normal.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
allow-query { none; };
|
||||
};
|
||||
|
@ -29,7 +29,7 @@ view "internal" {
|
||||
};
|
||||
|
||||
zone "normal.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
allow-query { any; };
|
||||
};
|
||||
|
@ -29,7 +29,7 @@ view "internal" {
|
||||
};
|
||||
|
||||
zone "normal.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
allow-query { none; };
|
||||
};
|
||||
|
@ -28,12 +28,12 @@ view "internal" {
|
||||
};
|
||||
|
||||
zone "normal.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
};
|
||||
|
||||
zone "aclnotallow.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "generic.db";
|
||||
allow-query-on { none; };
|
||||
};
|
||||
|
@ -45,9 +45,9 @@
|
||||
# In zone, with view set to none, zone set to any
|
||||
# In zone, with view set to any, zone set to none
|
||||
#
|
||||
# zone types of master, slave and stub can be tested in parallel by using
|
||||
# multiple instances (ns2 as master, ns3 as slave, ns4 as stub) and querying
|
||||
# as necessary.
|
||||
# zone types of primary, secondary and stub can be tested in parallel by
|
||||
# using multiple instances (ns2 as primary, ns3 as secondary, ns4 as stub)
|
||||
# and querying as necessary.
|
||||
#
|
||||
|
||||
. $SYSTEMTESTTOP/conf.sh
|
||||
|
@ -23,19 +23,19 @@ options {
|
||||
|
||||
view main in {
|
||||
zone example.net {
|
||||
type master;
|
||||
type primary;
|
||||
file "example.net.db";
|
||||
};
|
||||
|
||||
zone example.com {
|
||||
type master;
|
||||
type primary;
|
||||
file "example.com.db";
|
||||
};
|
||||
};
|
||||
|
||||
view alt chaos {
|
||||
zone example.chaos chaos {
|
||||
type master;
|
||||
type primary;
|
||||
file "chaos.db";
|
||||
};
|
||||
};
|
||||
|
@ -22,13 +22,13 @@ options {
|
||||
};
|
||||
|
||||
zone example.net {
|
||||
type slave;
|
||||
type secondary;
|
||||
primaries { 10.53.0.1; };
|
||||
file "example.net.bk";
|
||||
};
|
||||
|
||||
zone example.com {
|
||||
type slave;
|
||||
type secondary;
|
||||
primaries { 10.53.0.1; };
|
||||
file "example.com.bk";
|
||||
};
|
||||
|
@ -34,7 +34,7 @@ controls {
|
||||
};
|
||||
|
||||
zone "." {
|
||||
type master;
|
||||
type primary;
|
||||
file "root.db";
|
||||
allow-transfer { any; };
|
||||
allow-query { any; };
|
||||
|
@ -40,7 +40,7 @@ zone "." {
|
||||
};
|
||||
|
||||
zone "example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "example.db";
|
||||
allow-query { any; };
|
||||
allow-transfer { any; };
|
||||
@ -49,7 +49,7 @@ zone "example" {
|
||||
};
|
||||
|
||||
zone "bar" {
|
||||
type master;
|
||||
type primary;
|
||||
file "bar.db";
|
||||
allow-query { any; };
|
||||
allow-transfer { any; };
|
||||
@ -59,7 +59,7 @@ zone "bar" {
|
||||
};
|
||||
|
||||
zone "private.secure.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "private.secure.example.db";
|
||||
allow-query { any; };
|
||||
allow-transfer { any; };
|
||||
@ -68,7 +68,7 @@ zone "private.secure.example" {
|
||||
};
|
||||
|
||||
zone "insecure.secure.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "insecure.secure.example.db";
|
||||
allow-query { any; };
|
||||
allow-transfer { any; };
|
||||
@ -77,7 +77,7 @@ zone "insecure.secure.example" {
|
||||
};
|
||||
|
||||
zone "child.nsec3.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "child.nsec3.example.db";
|
||||
allow-query { any; };
|
||||
allow-transfer { any; };
|
||||
@ -86,7 +86,7 @@ zone "child.nsec3.example" {
|
||||
};
|
||||
|
||||
zone "child.optout.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "child.optout.example.db";
|
||||
allow-query { any; };
|
||||
allow-transfer { any; };
|
||||
|
@ -44,59 +44,59 @@ zone "." {
|
||||
};
|
||||
|
||||
zone "example" {
|
||||
type slave;
|
||||
type secondary;
|
||||
primaries { 10.53.0.2; };
|
||||
file "example.bk";
|
||||
};
|
||||
|
||||
zone "bar" {
|
||||
type slave;
|
||||
type secondary;
|
||||
primaries { 10.53.0.2; };
|
||||
file "bar.bk";
|
||||
};
|
||||
|
||||
zone "secure.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "secure.example.db";
|
||||
allow-update { any; };
|
||||
auto-dnssec maintain;
|
||||
};
|
||||
|
||||
zone "insecure.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "insecure.example.db";
|
||||
};
|
||||
|
||||
zone "nsec3.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "nsec3.example.db";
|
||||
allow-update { any; };
|
||||
auto-dnssec maintain;
|
||||
};
|
||||
|
||||
zone "autonsec3.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "autonsec3.example.db";
|
||||
allow-update { any; };
|
||||
auto-dnssec maintain;
|
||||
};
|
||||
|
||||
zone "optout.nsec3.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "optout.nsec3.example.db";
|
||||
allow-update { any; };
|
||||
auto-dnssec maintain;
|
||||
};
|
||||
|
||||
zone "nsec3.nsec3.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "nsec3.nsec3.example.db";
|
||||
allow-update { any; };
|
||||
auto-dnssec maintain;
|
||||
};
|
||||
|
||||
zone "jitter.nsec3.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "jitter.nsec3.example.db";
|
||||
allow-update { any; };
|
||||
auto-dnssec maintain;
|
||||
@ -106,77 +106,77 @@ zone "jitter.nsec3.example" {
|
||||
};
|
||||
|
||||
zone "secure.nsec3.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "secure.nsec3.example.db";
|
||||
allow-update { any; };
|
||||
auto-dnssec maintain;
|
||||
};
|
||||
|
||||
zone "optout.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "optout.example.db";
|
||||
allow-update { any; };
|
||||
auto-dnssec maintain;
|
||||
};
|
||||
|
||||
zone "secure.optout.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "secure.optout.example.db";
|
||||
allow-update { any; };
|
||||
auto-dnssec maintain;
|
||||
};
|
||||
|
||||
zone "nsec3.optout.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "nsec3.optout.example.db";
|
||||
allow-update { any; };
|
||||
auto-dnssec maintain;
|
||||
};
|
||||
|
||||
zone "optout.optout.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "optout.optout.example.db";
|
||||
allow-update { any; };
|
||||
auto-dnssec maintain;
|
||||
};
|
||||
|
||||
zone "rsasha256.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "rsasha256.example.db";
|
||||
allow-update { any; };
|
||||
auto-dnssec maintain;
|
||||
};
|
||||
|
||||
zone "rsasha512.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "rsasha512.example.db";
|
||||
allow-update { any; };
|
||||
auto-dnssec maintain;
|
||||
};
|
||||
|
||||
zone "nsec.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "nsec.example.db";
|
||||
allow-update { any; };
|
||||
auto-dnssec maintain;
|
||||
};
|
||||
|
||||
zone "nsec3-to-nsec.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "nsec3-to-nsec.example.db";
|
||||
allow-update { any; };
|
||||
auto-dnssec maintain;
|
||||
};
|
||||
|
||||
zone "secure-to-insecure.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "secure-to-insecure.example.db";
|
||||
allow-update { any; };
|
||||
dnssec-secure-to-insecure yes;
|
||||
};
|
||||
|
||||
zone "secure-to-insecure2.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "secure-to-insecure2.example.db";
|
||||
allow-update { any; };
|
||||
auto-dnssec maintain;
|
||||
@ -184,7 +184,7 @@ zone "secure-to-insecure2.example" {
|
||||
};
|
||||
|
||||
zone "oldsigs.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "oldsigs.example.db";
|
||||
allow-update { any; };
|
||||
auto-dnssec maintain;
|
||||
@ -194,70 +194,70 @@ zone "oldsigs.example" {
|
||||
};
|
||||
|
||||
zone "prepub.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "prepub.example.db";
|
||||
allow-update { any; };
|
||||
auto-dnssec maintain;
|
||||
};
|
||||
|
||||
zone "ttl1.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "ttl1.example.db";
|
||||
allow-update { any; };
|
||||
auto-dnssec maintain;
|
||||
};
|
||||
|
||||
zone "ttl2.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "ttl2.example.db";
|
||||
allow-update { any; };
|
||||
auto-dnssec maintain;
|
||||
};
|
||||
|
||||
zone "ttl3.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "ttl3.example.db";
|
||||
allow-update { any; };
|
||||
auto-dnssec maintain;
|
||||
};
|
||||
|
||||
zone "ttl4.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "ttl4.example.db";
|
||||
allow-update { any; };
|
||||
auto-dnssec maintain;
|
||||
};
|
||||
|
||||
zone "delay.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "delay.example.db";
|
||||
allow-update { any; };
|
||||
auto-dnssec maintain;
|
||||
};
|
||||
|
||||
zone "nozsk.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "nozsk.example.db";
|
||||
allow-update { any; };
|
||||
auto-dnssec maintain;
|
||||
};
|
||||
|
||||
zone "inaczsk.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "inaczsk.example.db";
|
||||
allow-update { any; };
|
||||
auto-dnssec maintain;
|
||||
};
|
||||
|
||||
zone "sync.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "sync.example.db";
|
||||
allow-update { any; };
|
||||
auto-dnssec maintain;
|
||||
};
|
||||
|
||||
zone "kskonly.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "kskonly.example.db";
|
||||
allow-update { any; };
|
||||
dnssec-dnskey-kskonly yes;
|
||||
@ -265,7 +265,7 @@ zone "kskonly.example" {
|
||||
};
|
||||
|
||||
zone "inacksk2.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "inacksk2.example.db";
|
||||
allow-update { any; };
|
||||
dnssec-dnskey-kskonly yes;
|
||||
@ -273,7 +273,7 @@ zone "inacksk2.example" {
|
||||
};
|
||||
|
||||
zone "inacksk3.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "inacksk3.example.db";
|
||||
allow-update { any; };
|
||||
dnssec-dnskey-kskonly yes;
|
||||
@ -281,28 +281,28 @@ zone "inacksk3.example" {
|
||||
};
|
||||
|
||||
zone "inaczsk2.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "inaczsk2.example.db";
|
||||
allow-update { any; };
|
||||
auto-dnssec maintain;
|
||||
};
|
||||
|
||||
zone "inaczsk3.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "inaczsk3.example.db";
|
||||
allow-update { any; };
|
||||
auto-dnssec maintain;
|
||||
};
|
||||
|
||||
zone "delzsk.example." {
|
||||
type master;
|
||||
type primary;
|
||||
file "delzsk.example.db";
|
||||
allow-update { any; };
|
||||
auto-dnssec maintain;
|
||||
};
|
||||
|
||||
zone "dname-at-apex-nsec3.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "dname-at-apex-nsec3.example.db";
|
||||
allow-update { any; };
|
||||
auto-dnssec maintain;
|
||||
|
@ -1359,11 +1359,11 @@ status=`expr $status + $ret`
|
||||
echo_i "test turning on auto-dnssec during reconfig ($n)"
|
||||
ret=0
|
||||
# first create a zone that doesn't have auto-dnssec
|
||||
($RNDCCMD 10.53.0.3 addzone reconf.example '{ type master; file "reconf.example.db"; };' 2>&1 | sed 's/^/ns3 /' | cat_i) || ret=1
|
||||
($RNDCCMD 10.53.0.3 addzone reconf.example '{ type primary; file "reconf.example.db"; };' 2>&1 | sed 's/^/ns3 /' | cat_i) || ret=1
|
||||
rekey_calls=`grep "zone reconf.example.*next key event" ns3/named.run | wc -l`
|
||||
[ "$rekey_calls" -eq 0 ] || ret=1
|
||||
# ...then we add auto-dnssec and reconfigure
|
||||
($RNDCCMD 10.53.0.3 modzone reconf.example '{ type master; file "reconf.example.db"; allow-update { any; }; auto-dnssec maintain; };' 2>&1 | sed 's/^/ns3 /' | cat_i) || ret=1
|
||||
($RNDCCMD 10.53.0.3 modzone reconf.example '{ type primary; file "reconf.example.db"; allow-update { any; }; auto-dnssec maintain; };' 2>&1 | sed 's/^/ns3 /' | cat_i) || ret=1
|
||||
rndc_reconfig ns3 10.53.0.3
|
||||
for i in 0 1 2 3 4 5 6 7 8 9; do
|
||||
lret=0
|
||||
|
@ -25,16 +25,16 @@ options {
|
||||
};
|
||||
|
||||
zone "." {
|
||||
type master;
|
||||
type primary;
|
||||
file "example.db";
|
||||
};
|
||||
|
||||
zone "flushtest.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "flushtest.db";
|
||||
};
|
||||
|
||||
zone "expire-test" {
|
||||
type master;
|
||||
type primary;
|
||||
file "expire-test.db";
|
||||
};
|
||||
|
@ -44,6 +44,6 @@ zone "flushtest.example" {
|
||||
};
|
||||
|
||||
zone "expire-test" {
|
||||
type slave;
|
||||
type secondary;
|
||||
primaries { 10.53.0.1; };
|
||||
};
|
||||
|
@ -246,7 +246,7 @@ if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
n=`expr $n + 1`
|
||||
echo_i "check expire option returned from master zone ($n)"
|
||||
echo_i "check expire option returned from primary zone ($n)"
|
||||
ret=0
|
||||
$DIG @10.53.0.1 -p ${PORT} +expire soa expire-test > dig.out.expire
|
||||
grep EXPIRE: dig.out.expire > /dev/null || ret=1
|
||||
@ -254,7 +254,7 @@ if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
n=`expr $n + 1`
|
||||
echo_i "check expire option returned from slave zone ($n)"
|
||||
echo_i "check expire option returned from secondary zone ($n)"
|
||||
ret=0
|
||||
$DIG @10.53.0.2 -p ${PORT} +expire soa expire-test > dig.out.expire
|
||||
grep EXPIRE: dig.out.expire > /dev/null || ret=1
|
||||
|
@ -25,13 +25,13 @@ options {
|
||||
};
|
||||
|
||||
zone "example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "example.db";
|
||||
also-notify { 10.53.0.2; };
|
||||
};
|
||||
|
||||
zone "dynamic" {
|
||||
type master;
|
||||
type primary;
|
||||
file "dynamic.db";
|
||||
allow-update { any; };
|
||||
also-notify { 10.53.0.2; };
|
||||
|
@ -26,13 +26,13 @@ options {
|
||||
};
|
||||
|
||||
zone "example" {
|
||||
type slave;
|
||||
type secondary;
|
||||
file "example.bk";
|
||||
primaries { 10.53.0.1; };
|
||||
};
|
||||
|
||||
zone "dynamic" {
|
||||
type slave;
|
||||
type secondary;
|
||||
file "dynamic.bk";
|
||||
primaries { 10.53.0.1; };
|
||||
};
|
||||
|
@ -105,7 +105,7 @@ test $ret -eq 0 || echo_i "failed"
|
||||
status=`expr $status + $ret`
|
||||
|
||||
n=`expr $n + 1`
|
||||
echo_i "check SOA owner case is transferred to slave ($n)"
|
||||
echo_i "check SOA owner case is transferred to secondary ($n)"
|
||||
ret=0
|
||||
$DIG $DIGOPTS axfr dynamic @10.53.0.2 > dig.ns2.test$n
|
||||
digcomp dig.ns2.test$n postupdate.good || ret=1
|
||||
@ -137,7 +137,7 @@ test $ret -eq 0 || echo_i "failed"
|
||||
status=`expr $status + $ret`
|
||||
|
||||
n=`expr $n + 1`
|
||||
echo_i "check A owner case is transferred to slave ($n)"
|
||||
echo_i "check A owner case is transferred to secondary ($n)"
|
||||
ret=0
|
||||
$DIG $DIGOPTS axfr dynamic @10.53.0.2 > dig.ns2.test$n
|
||||
digcomp dig.ns2.test$n postns1.good || ret=1
|
||||
|
@ -31,7 +31,7 @@ options {
|
||||
};
|
||||
|
||||
zone "catalog1.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "catalog1.example.db";
|
||||
allow-transfer { any; };
|
||||
allow-update { any; };
|
||||
@ -40,7 +40,7 @@ zone "catalog1.example" {
|
||||
};
|
||||
|
||||
zone "catalog3.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "catalog3.example.db";
|
||||
allow-transfer { any; };
|
||||
allow-update { any; };
|
||||
@ -49,7 +49,7 @@ zone "catalog3.example" {
|
||||
};
|
||||
|
||||
zone "catalog4.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "catalog4.example.db";
|
||||
allow-transfer { any; };
|
||||
allow-update { any; };
|
||||
|
@ -45,25 +45,25 @@ options {
|
||||
};
|
||||
|
||||
zone "catalog1.example" {
|
||||
type slave;
|
||||
type secondary;
|
||||
file "catalog1.example.db";
|
||||
primaries { 10.53.0.1; };
|
||||
};
|
||||
|
||||
zone "catalog2.example" {
|
||||
type slave;
|
||||
type secondary;
|
||||
file "catalog2.example.db";
|
||||
primaries { 10.53.0.3; };
|
||||
};
|
||||
|
||||
zone "catalog3.example" {
|
||||
type slave;
|
||||
type secondary;
|
||||
file "catalog3.example.db";
|
||||
primaries { 10.53.0.1; };
|
||||
};
|
||||
|
||||
zone "catalog4.example" {
|
||||
type slave;
|
||||
type secondary;
|
||||
file "catalog4.example.db";
|
||||
primaries { 10.53.0.1; };
|
||||
};
|
||||
|
@ -30,7 +30,7 @@ options {
|
||||
};
|
||||
|
||||
zone "catalog2.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "catalog2.example.db";
|
||||
allow-transfer { any; };
|
||||
allow-update { any; };
|
||||
@ -39,7 +39,7 @@ zone "catalog2.example" {
|
||||
};
|
||||
|
||||
zone "dom5.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "dom5.example.db";
|
||||
allow-transfer { any; };
|
||||
allow-update { any; };
|
||||
@ -47,7 +47,7 @@ zone "dom5.example" {
|
||||
};
|
||||
|
||||
zone "dom6.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "dom6.example.db";
|
||||
allow-transfer { any; };
|
||||
allow-update { any; };
|
||||
|
@ -81,23 +81,23 @@ n=0
|
||||
##########################################################################
|
||||
echo_i "Testing adding/removing of domain in catalog zone"
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom1.example. is not served by master ($n)"
|
||||
echo_i "checking that dom1.example. is not served by primary ($n)"
|
||||
ret=0
|
||||
wait_for_no_soa @10.53.0.1 dom1.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "Adding a domain dom1.example. to master via RNDC ($n)"
|
||||
echo_i "Adding a domain dom1.example. to primary via RNDC ($n)"
|
||||
ret=0
|
||||
echo "@ 3600 IN SOA . . 1 3600 3600 3600 3600" > ns1/dom1.example.db
|
||||
echo "@ IN NS invalid." >> ns1/dom1.example.db
|
||||
rndccmd 10.53.0.1 addzone dom1.example. '{type master; file "dom1.example.db";};' || ret=1
|
||||
rndccmd 10.53.0.1 addzone dom1.example. '{type primary; file "dom1.example.db";};' || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom1.example. is now served by master ($n)"
|
||||
echo_i "checking that dom1.example. is now served by primary ($n)"
|
||||
ret=0
|
||||
wait_for_soa @10.53.0.1 dom1.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
@ -117,7 +117,7 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "waiting for slave to sync up ($n)"
|
||||
echo_i "waiting for secondary to sync up ($n)"
|
||||
ret=0
|
||||
wait_for_message ns2/named.run "catz: adding zone 'dom1.example' from catalog 'catalog1.example'" &&
|
||||
wait_for_message ns2/named.run "transfer of 'dom1.example/IN' from 10.53.0.1#${PORT}: Transfer status: success" || ret=1
|
||||
@ -125,7 +125,7 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom1.example. is served by slave ($n)"
|
||||
echo_i "checking that dom1.example. is served by secondary ($n)"
|
||||
ret=0
|
||||
wait_for_soa @10.53.0.2 dom1.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
@ -150,14 +150,14 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "waiting for slave to sync up ($n)"
|
||||
echo_i "waiting for secondary to sync up ($n)"
|
||||
ret=0
|
||||
wait_for_message ns2/named.run "zone_shutdown: zone dom1.example/IN: shutting down" || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom1.example. is not served by slave ($n)"
|
||||
echo_i "checking that dom1.example. is not served by secondary ($n)"
|
||||
ret=0
|
||||
wait_for_no_soa @10.53.0.2 dom1.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
@ -173,20 +173,20 @@ status=$((status+ret))
|
||||
##########################################################################
|
||||
echo_i "Testing various simple operations on domains, including using multiple catalog zones and garbage in zone"
|
||||
n=$((n+1))
|
||||
echo_i "adding domain dom2.example. to master via RNDC ($n)"
|
||||
echo_i "adding domain dom2.example. to primary via RNDC ($n)"
|
||||
ret=0
|
||||
echo "@ 3600 IN SOA . . 1 3600 3600 3600 3600" > ns1/dom2.example.db
|
||||
echo "@ IN NS invalid." >> ns1/dom2.example.db
|
||||
rndccmd 10.53.0.1 addzone dom2.example. '{type master; file "dom2.example.db";};' || ret=1
|
||||
rndccmd 10.53.0.1 addzone dom2.example. '{type primary; file "dom2.example.db";};' || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "adding domain dom4.example. to master via RNDC ($n)"
|
||||
echo_i "adding domain dom4.example. to primary via RNDC ($n)"
|
||||
ret=0
|
||||
echo "@ 3600 IN SOA . . 1 3600 3600 3600 3600" > ns1/dom4.example.db
|
||||
echo "@ IN NS invalid." >> ns1/dom4.example.db
|
||||
rndccmd 10.53.0.1 addzone dom4.example. '{type master; file "dom4.example.db";};' || ret=1
|
||||
rndccmd 10.53.0.1 addzone dom4.example. '{type primary; file "dom4.example.db";};' || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
@ -225,7 +225,7 @@ status=$((status+ret))
|
||||
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "waiting for slave to sync up ($n)"
|
||||
echo_i "waiting for secondary to sync up ($n)"
|
||||
ret=0
|
||||
wait_for_message ns2/named.run "catz: adding zone 'dom4.example' from catalog 'catalog2.example'" &&
|
||||
wait_for_message ns2/named.run "transfer of 'dom4.example/IN' from 10.53.0.1#${EXTRAPORT1}: Transfer status: success" || ret=1
|
||||
@ -233,7 +233,7 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom4.example. is served by slave ($n)"
|
||||
echo_i "checking that dom4.example. is served by secondary ($n)"
|
||||
ret=0
|
||||
wait_for_soa @10.53.0.2 dom4.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
@ -241,30 +241,30 @@ status=$((status+ret))
|
||||
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom3.example. is not served by master ($n)"
|
||||
echo_i "checking that dom3.example. is not served by primary ($n)"
|
||||
ret=0
|
||||
wait_for_no_soa @10.53.0.1 dom3.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "adding a domain dom3.example. to master via RNDC ($n)"
|
||||
echo_i "adding a domain dom3.example. to primary via RNDC ($n)"
|
||||
ret=0
|
||||
echo "@ 3600 IN SOA . . 1 3600 3600 3600 3600" > ns1/dom3.example.db
|
||||
echo "@ IN NS invalid." >> ns1/dom3.example.db
|
||||
rndccmd 10.53.0.1 addzone dom3.example. '{type master; file "dom3.example.db"; also-notify { 10.53.0.2; }; notify explicit; };' || ret=1
|
||||
rndccmd 10.53.0.1 addzone dom3.example. '{type primary; file "dom3.example.db"; also-notify { 10.53.0.2; }; notify explicit; };' || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom3.example. is served by master ($n)"
|
||||
echo_i "checking that dom3.example. is served by primary ($n)"
|
||||
ret=0
|
||||
wait_for_soa @10.53.0.1 dom3.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "waiting for slave to sync up ($n)"
|
||||
echo_i "waiting for secondary to sync up ($n)"
|
||||
ret=0
|
||||
wait_for_message ns2/named.run "catz: adding zone 'dom2.example' from catalog 'catalog1.example'" &&
|
||||
wait_for_message ns2/named.run "catz: adding zone 'dom3.example' from catalog 'catalog1.example'" &&
|
||||
@ -274,7 +274,7 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom3.example. is served by slave ($n)"
|
||||
echo_i "checking that dom3.example. is served by secondary ($n)"
|
||||
ret=0
|
||||
wait_for_soa @10.53.0.2 dom3.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
@ -328,7 +328,7 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "waiting for slave to sync up ($n)"
|
||||
echo_i "waiting for secondary to sync up ($n)"
|
||||
ret=0
|
||||
wait_for_message ns2/named.run "catz: adding zone 'dom5.example' from catalog 'catalog1.example'" &&
|
||||
wait_for_message ns2/named.run "transfer of 'dom5.example/IN' from 10.53.0.3#${PORT}: Transfer status: success" || ret=1
|
||||
@ -336,7 +336,7 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom5.example. is served by slave ($n)"
|
||||
echo_i "checking that dom5.example. is served by secondary ($n)"
|
||||
ret=0
|
||||
wait_for_soa @10.53.0.2 dom5.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
@ -355,14 +355,14 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "waiting for slave to sync up ($n)"
|
||||
echo_i "waiting for secondary to sync up ($n)"
|
||||
ret=0
|
||||
wait_for_message ns2/named.run "zone_shutdown: zone dom5.example/IN: shutting down" || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom5.example. is no longer served by slave ($n)"
|
||||
echo_i "checking that dom5.example. is no longer served by secondary ($n)"
|
||||
ret=0
|
||||
wait_for_no_soa @10.53.0.2 dom5.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
@ -385,7 +385,7 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "waiting for slave to sync up ($n)"
|
||||
echo_i "waiting for secondary to sync up ($n)"
|
||||
ret=0
|
||||
wait_for_message ns2/named.run "catz: adding zone 'dom6.example' from catalog 'catalog1.example'" &&
|
||||
wait_for_message ns2/named.run "transfer of 'dom6.example/IN' from " > /dev/null || ret=1
|
||||
@ -393,7 +393,7 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom6.example. is served by slave ($n)"
|
||||
echo_i "checking that dom6.example. is served by secondary ($n)"
|
||||
ret=0
|
||||
wait_for_soa @10.53.0.2 dom6.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
@ -413,14 +413,14 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "waiting for slave to sync up ($n)"
|
||||
echo_i "waiting for secondary to sync up ($n)"
|
||||
ret=0
|
||||
wait_for_message ns2/named.run "zone_shutdown: zone dom6.example/IN: shutting down" || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom6.example. is no longer served by slave ($n)"
|
||||
echo_i "checking that dom6.example. is no longer served by secondary ($n)"
|
||||
ret=0
|
||||
wait_for_no_soa @10.53.0.2 dom6.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
@ -441,7 +441,7 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "waiting for slave to sync up ($n)"
|
||||
echo_i "waiting for secondary to sync up ($n)"
|
||||
ret=0
|
||||
wait_for_message ns2/named.run "catz: adding zone 'dom6.example' from catalog 'catalog1.example'" &&
|
||||
wait_for_message ns2/named.run "error \"failure\" while trying to generate config for zone \"dom6.example\"" || ret=1
|
||||
@ -461,7 +461,7 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "waiting for slave to sync up ($n)"
|
||||
echo_i "waiting for secondary to sync up ($n)"
|
||||
ret=0
|
||||
wait_for_message ns2/named.run "catz: deleting zone 'dom6.example' from catalog 'catalog1.example' - success" > /dev/null || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
@ -478,21 +478,21 @@ status=$((status+ret))
|
||||
##########################################################################
|
||||
echo_i "Testing allow-query and allow-transfer ACLs"
|
||||
n=$((n+1))
|
||||
echo_i "adding domains dom7.example. and dom8.example. to master via RNDC ($n)"
|
||||
echo_i "adding domains dom7.example. and dom8.example. to primary via RNDC ($n)"
|
||||
ret=0
|
||||
echo "@ 3600 IN SOA . . 1 3600 3600 3600 3600" > ns1/dom7.example.db
|
||||
echo "@ IN NS invalid." >> ns1/dom7.example.db
|
||||
rndccmd 10.53.0.1 addzone dom7.example. '{type master; file "dom7.example.db";};' || ret=1
|
||||
rndccmd 10.53.0.1 addzone dom7.example. '{type primary; file "dom7.example.db";};' || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
echo "@ 3600 IN SOA . . 1 3600 3600 3600 3600" > ns1/dom8.example.db
|
||||
echo "@ IN NS invalid." >> ns1/dom8.example.db
|
||||
rndccmd 10.53.0.1 addzone dom8.example. '{type master; file "dom8.example.db";};' || ret=1
|
||||
rndccmd 10.53.0.1 addzone dom8.example. '{type primary; file "dom8.example.db";};' || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom7.example. is now served by master ($n)"
|
||||
echo_i "checking that dom7.example. is now served by primary ($n)"
|
||||
ret=0
|
||||
wait_for_soa @10.53.0.1 dom7.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
@ -513,7 +513,7 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "waiting for slave to sync up ($n)"
|
||||
echo_i "waiting for secondary to sync up ($n)"
|
||||
ret=0
|
||||
wait_for_message ns2/named.run "catz: adding zone 'dom7.example' from catalog 'catalog1.example'" > /dev/null &&
|
||||
wait_for_message ns2/named.run "transfer of 'dom7.example/IN' from 10.53.0.1#${PORT}: Transfer status: success" || ret=1
|
||||
@ -556,7 +556,7 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "waiting for slave to sync up ($n)"
|
||||
echo_i "waiting for secondary to sync up ($n)"
|
||||
ret=0
|
||||
wait_for_message ns2/named.run "catz: update_from_db: new zone merged" &&
|
||||
wait_for_message ns2/named.run "transfer of 'dom8.example/IN' from 10.53.0.1#${PORT}: Transfer status: success" || ret=1
|
||||
@ -644,16 +644,16 @@ status=$((status+ret))
|
||||
##########################################################################
|
||||
echo_i "Testing TSIG keys for masters set per-domain"
|
||||
n=$((n+1))
|
||||
echo_i "adding a domain dom9.example. to master via RNDC, with transfers allowed only with TSIG key ($n)"
|
||||
echo_i "adding a domain dom9.example. to primary via RNDC, with transfers allowed only with TSIG key ($n)"
|
||||
ret=0
|
||||
echo "@ 3600 IN SOA . . 1 3600 3600 3600 3600" > ns1/dom9.example.db
|
||||
echo "@ IN NS invalid." >> ns1/dom9.example.db
|
||||
rndccmd 10.53.0.1 addzone dom9.example. '{type master; file "dom9.example.db"; allow-transfer { key tsig_key; }; };' || ret=1
|
||||
rndccmd 10.53.0.1 addzone dom9.example. '{type primary; file "dom9.example.db"; allow-transfer { key tsig_key; }; };' || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom9.example. is now served by master ($n)"
|
||||
echo_i "checking that dom9.example. is now served by primary ($n)"
|
||||
ret=0
|
||||
wait_for_soa @10.53.0.1 dom9.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
@ -675,7 +675,7 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "waiting for slave to sync up ($n)"
|
||||
echo_i "waiting for secondary to sync up ($n)"
|
||||
ret=0
|
||||
wait_for_message ns2/named.run "catz: adding zone 'dom9.example' from catalog 'catalog1.example'" &&
|
||||
wait_for_message ns2/named.run "transfer of 'dom9.example/IN' from 10.53.0.1#${PORT}: Transfer status: success" || ret=1
|
||||
@ -683,7 +683,7 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom9.example. is accessible on slave ($n)"
|
||||
echo_i "checking that dom9.example. is accessible on secondary ($n)"
|
||||
ret=0
|
||||
wait_for_soa @10.53.0.2 dom9.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
@ -703,14 +703,14 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "waiting for slave to sync up ($n)"
|
||||
echo_i "waiting for secondary to sync up ($n)"
|
||||
ret=0
|
||||
wait_for_message ns2/named.run "catz: deleting zone 'dom9.example' from catalog 'catalog1.example' - success" || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom9.example. is no longer accessible on slave ($n)"
|
||||
echo_i "checking that dom9.example. is no longer accessible on secondary ($n)"
|
||||
ret=0
|
||||
wait_for_no_soa @10.53.0.2 dom9.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
@ -731,7 +731,7 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "waiting for slave to sync up ($n)"
|
||||
echo_i "waiting for secondary to sync up ($n)"
|
||||
ret=0
|
||||
wait_for_message ns2/named.run "catz: adding zone 'dom9.example' from catalog 'catalog1.example'" &&
|
||||
wait_for_message ns2/named.run "error \"failure\" while trying to generate config for zone \"dom9.example\"" || ret=1
|
||||
@ -751,7 +751,7 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "waiting for slave to sync up ($n)"
|
||||
echo_i "waiting for secondary to sync up ($n)"
|
||||
ret=0
|
||||
wait_for_message ns2/named.run "catz: deleting zone 'dom9.example' from catalog 'catalog1.example'" || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
@ -790,23 +790,23 @@ do
|
||||
esac
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that ${special}. is not served by master ($n)"
|
||||
echo_i "checking that ${special}. is not served by primary ($n)"
|
||||
ret=0
|
||||
wait_for_no_soa @10.53.0.1 "${special}" dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "Adding a domain ${special}. to master via RNDC ($n)"
|
||||
echo_i "Adding a domain ${special}. to primary via RNDC ($n)"
|
||||
ret=0
|
||||
echo "@ 3600 IN SOA . . 1 3600 3600 3600 3600" > ns1/dom10.example.db
|
||||
echo "@ IN NS invalid." >> ns1/dom10.example.db
|
||||
rndccmd 10.53.0.1 addzone '"'"${special}"'"' '{type master; file "dom10.example.db";};' || ret=1
|
||||
rndccmd 10.53.0.1 addzone '"'"${special}"'"' '{type primary; file "dom10.example.db";};' || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that ${special}. is now served by master ($n)"
|
||||
echo_i "checking that ${special}. is now served by primary ($n)"
|
||||
ret=0
|
||||
wait_for_soa @10.53.0.1 "${special}." dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
@ -826,7 +826,7 @@ END
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "waiting for slave to sync up ($n)"
|
||||
echo_i "waiting for secondary to sync up ($n)"
|
||||
ret=0
|
||||
wait_for_message ns2/named.run "catz: adding zone '$special' from catalog 'catalog1.example'" &&
|
||||
wait_for_message ns2/named.run "transfer of '$special/IN' from 10.53.0.1#${PORT}: Transfer status: success" || ret=1
|
||||
@ -834,7 +834,7 @@ END
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that ${special}. is served by slave ($n)"
|
||||
echo_i "checking that ${special}. is served by secondary ($n)"
|
||||
ret=0
|
||||
wait_for_soa @10.53.0.2 "${special}." dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
@ -859,14 +859,14 @@ END
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "waiting for slave to sync up ($n)"
|
||||
echo_i "waiting for secondary to sync up ($n)"
|
||||
ret=0
|
||||
wait_for_message ns2/named.run "zone_shutdown: zone ${special}/IN: shutting down" || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that ${special}. is not served by slave ($n)"
|
||||
echo_i "checking that ${special}. is not served by secondary ($n)"
|
||||
ret=0
|
||||
wait_for_no_soa @10.53.0.2 "${special}." dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
@ -883,23 +883,23 @@ done
|
||||
##########################################################################
|
||||
echo_i "Testing adding a domain and a subdomain of it"
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom11.example. is not served by master ($n)"
|
||||
echo_i "checking that dom11.example. is not served by primary ($n)"
|
||||
ret=0
|
||||
wait_for_no_soa @10.53.0.1 dom11.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "Adding a domain dom11.example. to master via RNDC ($n)"
|
||||
echo_i "Adding a domain dom11.example. to primary via RNDC ($n)"
|
||||
ret=0
|
||||
echo "@ 3600 IN SOA . . 1 3600 3600 3600 3600" > ns1/dom11.example.db
|
||||
echo "@ IN NS invalid." >> ns1/dom11.example.db
|
||||
rndccmd 10.53.0.1 addzone dom11.example. '{type master; file "dom11.example.db";};' || ret=1
|
||||
rndccmd 10.53.0.1 addzone dom11.example. '{type primary; file "dom11.example.db";};' || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom11.example. is now served by master ($n)"
|
||||
echo_i "checking that dom11.example. is now served by primary ($n)"
|
||||
ret=0
|
||||
wait_for_soa @10.53.0.1 dom11.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
@ -919,7 +919,7 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "waiting for slave to sync up ($n)"
|
||||
echo_i "waiting for secondary to sync up ($n)"
|
||||
ret=0
|
||||
wait_for_message ns2/named.run "catz: adding zone 'dom11.example' from catalog 'catalog1.example'" &&
|
||||
wait_for_message ns2/named.run "transfer of 'dom11.example/IN' from 10.53.0.1#${PORT}: Transfer status: success" || ret=1
|
||||
@ -927,30 +927,30 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom11.example. is served by slave ($n)"
|
||||
echo_i "checking that dom11.example. is served by secondary ($n)"
|
||||
ret=0
|
||||
wait_for_soa @10.53.0.2 dom11.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that subdomain.of.dom11.example. is not served by master ($n)"
|
||||
echo_i "checking that subdomain.of.dom11.example. is not served by primary ($n)"
|
||||
ret=0
|
||||
wait_for_rcode NXDOMAIN SOA @10.53.0.1 subdomain.of.dom11.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "Adding a domain subdomain.of.dom11.example. to master via RNDC ($n)"
|
||||
echo_i "Adding a domain subdomain.of.dom11.example. to primary via RNDC ($n)"
|
||||
ret=0
|
||||
echo "@ 3600 IN SOA . . 1 3600 3600 3600 3600" > ns1/subdomain.of.dom11.example.db
|
||||
echo "@ IN NS invalid." >> ns1/subdomain.of.dom11.example.db
|
||||
rndccmd 10.53.0.1 addzone subdomain.of.dom11.example. '{type master; file "subdomain.of.dom11.example.db";};' || ret=1
|
||||
rndccmd 10.53.0.1 addzone subdomain.of.dom11.example. '{type primary; file "subdomain.of.dom11.example.db";};' || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that subdomain.of.dom11.example. is now served by master ($n)"
|
||||
echo_i "checking that subdomain.of.dom11.example. is now served by primary ($n)"
|
||||
ret=0
|
||||
wait_for_soa @10.53.0.1 subdomain.of.dom11.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
@ -970,7 +970,7 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "waiting for slave to sync up ($n)"
|
||||
echo_i "waiting for secondary to sync up ($n)"
|
||||
ret=0
|
||||
wait_for_message ns2/named.run "catz: adding zone 'subdomain.of.dom11.example' from catalog 'catalog1.example'" &&
|
||||
wait_for_message ns2/named.run "transfer of 'subdomain.of.dom11.example/IN' from 10.53.0.1#${PORT}: Transfer status: success" || ret=1
|
||||
@ -978,7 +978,7 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that subdomain.of.dom11.example. is served by slave ($n)"
|
||||
echo_i "checking that subdomain.of.dom11.example. is served by secondary ($n)"
|
||||
ret=0
|
||||
wait_for_soa @10.53.0.2 subdomain.of.dom11.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
@ -996,21 +996,21 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "waiting for slave to sync up ($n)"
|
||||
echo_i "waiting for secondary to sync up ($n)"
|
||||
ret=0
|
||||
wait_for_message ns2/named.run "zone_shutdown: zone dom11.example/IN: shutting down" || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom11.example. is not served by slave ($n)"
|
||||
echo_i "checking that dom11.example. is not served by secondary ($n)"
|
||||
ret=0
|
||||
wait_for_no_soa @10.53.0.2 dom11.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that subdomain.of.dom11.example. is still served by slave ($n)"
|
||||
echo_i "checking that subdomain.of.dom11.example. is still served by secondary ($n)"
|
||||
ret=0
|
||||
wait_for_soa @10.53.0.2 subdomain.of.dom11.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
@ -1028,14 +1028,14 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "waiting for slave to sync up ($n)"
|
||||
echo_i "waiting for secondary to sync up ($n)"
|
||||
ret=0
|
||||
wait_for_message ns2/named.run "zone_shutdown: zone subdomain.of.dom11.example/IN: shutting down" || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that subdomain.of.dom11.example. is not served by slave ($n)"
|
||||
echo_i "checking that subdomain.of.dom11.example. is not served by secondary ($n)"
|
||||
ret=0
|
||||
wait_for_no_soa @10.53.0.2 subdomain.of.d11.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
@ -1044,23 +1044,23 @@ status=$((status+ret))
|
||||
##########################################################################
|
||||
echo_i "Testing adding a catalog zone at runtime with rndc reconfig"
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom12.example. is not served by master ($n)"
|
||||
echo_i "checking that dom12.example. is not served by primary ($n)"
|
||||
ret=0
|
||||
wait_for_no_soa @10.53.0.1 dom12.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "Adding a domain dom12.example. to master via RNDC ($n)"
|
||||
echo_i "Adding a domain dom12.example. to primary via RNDC ($n)"
|
||||
ret=0
|
||||
echo "@ 3600 IN SOA . . 1 3600 3600 3600 3600" > ns1/dom12.example.db
|
||||
echo "@ IN NS invalid." >> ns1/dom12.example.db
|
||||
rndccmd 10.53.0.1 addzone dom12.example. '{type master; file "dom12.example.db";};' || ret=1
|
||||
rndccmd 10.53.0.1 addzone dom12.example. '{type primary; file "dom12.example.db";};' || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom12.example. is now served by master ($n)"
|
||||
echo_i "checking that dom12.example. is now served by primary ($n)"
|
||||
ret=0
|
||||
wait_for_soa @10.53.0.1 dom12.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
@ -1080,7 +1080,7 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom12.example. is not served by slave ($n)"
|
||||
echo_i "checking that dom12.example. is not served by secondary ($n)"
|
||||
ret=0
|
||||
wait_for_no_soa @10.53.0.2 dom12.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
@ -1088,7 +1088,7 @@ status=$((status+ret))
|
||||
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "reconfiguring slave - adding catalog4 catalog zone ($n)"
|
||||
echo_i "reconfiguring secondary - adding catalog4 catalog zone ($n)"
|
||||
ret=0
|
||||
sed -e "s/^#T1//g" < ns2/named.conf.in > ns2/named.conf.tmp
|
||||
copy_setports ns2/named.conf.tmp ns2/named.conf
|
||||
@ -1097,7 +1097,7 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "waiting for slave to sync up ($n)"
|
||||
echo_i "waiting for secondary to sync up ($n)"
|
||||
ret=0
|
||||
wait_for_message ns2/named.run "catz: adding zone 'dom12.example' from catalog 'catalog4.example'" &&
|
||||
wait_for_message ns2/named.run "transfer of 'dom12.example/IN' from 10.53.0.1#${PORT}: Transfer status: success" || ret=1
|
||||
@ -1105,21 +1105,21 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom7.example. is still served by slave after reconfiguration ($n)"
|
||||
echo_i "checking that dom7.example. is still served by secondary after reconfiguration ($n)"
|
||||
ret=0
|
||||
wait_for_soa @10.53.0.2 dom7.example. dig.out.test$n -b 10.53.0.1 || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
n=$((n+1))
|
||||
|
||||
echo_i "checking that dom12.example. is served by slave ($n)"
|
||||
echo_i "checking that dom12.example. is served by secondary ($n)"
|
||||
ret=0
|
||||
wait_for_soa @10.53.0.2 dom12.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "reconfiguring slave - removing catalog4 catalog zone, adding non-existent catalog5 catalog zone ($n)"
|
||||
echo_i "reconfiguring secondary - removing catalog4 catalog zone, adding non-existent catalog5 catalog zone ($n)"
|
||||
ret=0
|
||||
sed -e "s/^#T2//" < ns2/named.conf.in > ns2/named.conf.tmp
|
||||
copy_setports ns2/named.conf.tmp ns2/named.conf
|
||||
@ -1128,7 +1128,7 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "reconfiguring slave - removing non-existent catalog5 catalog zone ($n)"
|
||||
echo_i "reconfiguring secondary - removing non-existent catalog5 catalog zone ($n)"
|
||||
ret=0
|
||||
copy_setports ns2/named.conf.in ns2/named.conf
|
||||
rndccmd 10.53.0.2 reconfig || ret=1
|
||||
@ -1136,7 +1136,7 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom12.example. is not served by slave ($n)"
|
||||
echo_i "checking that dom12.example. is not served by secondary ($n)"
|
||||
ret=0
|
||||
wait_for_no_soa @10.53.0.2 dom12.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
@ -1156,41 +1156,41 @@ status=$((status+ret))
|
||||
##########################################################################
|
||||
echo_i "Testing having a zone in two different catalogs"
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom13.example. is not served by master ($n)"
|
||||
echo_i "checking that dom13.example. is not served by primary ($n)"
|
||||
ret=0
|
||||
wait_for_no_soa @10.53.0.1 dom13.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "Adding a domain dom13.example. to master ns1 via RNDC ($n)"
|
||||
echo_i "Adding a domain dom13.example. to primary ns1 via RNDC ($n)"
|
||||
ret=0
|
||||
echo "@ 3600 IN SOA . . 1 3600 3600 3600 3600" > ns1/dom13.example.db
|
||||
echo "@ IN NS invalid." >> ns1/dom13.example.db
|
||||
echo "@ IN A 192.0.2.1" >> ns1/dom13.example.db
|
||||
rndccmd 10.53.0.1 addzone dom13.example. '{type master; file "dom13.example.db";};' || ret=1
|
||||
rndccmd 10.53.0.1 addzone dom13.example. '{type primary; file "dom13.example.db";};' || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom13.example. is now served by master ns1 ($n)"
|
||||
echo_i "checking that dom13.example. is now served by primary ns1 ($n)"
|
||||
ret=0
|
||||
wait_for_soa @10.53.0.1 dom13.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "Adding a domain dom13.example. to master ns3 via RNDC ($n)"
|
||||
echo_i "Adding a domain dom13.example. to primary ns3 via RNDC ($n)"
|
||||
ret=0
|
||||
echo "@ 3600 IN SOA . . 1 3600 3600 3600 3600" > ns3/dom13.example.db
|
||||
echo "@ IN NS invalid." >> ns3/dom13.example.db
|
||||
echo "@ IN A 192.0.2.2" >> ns3/dom13.example.db
|
||||
rndccmd 10.53.0.3 addzone dom13.example. '{type master; file "dom13.example.db";};' || ret=1
|
||||
rndccmd 10.53.0.3 addzone dom13.example. '{type primary; file "dom13.example.db";};' || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom13.example. is now served by master ns3 ($n)"
|
||||
echo_i "checking that dom13.example. is now served by primary ns3 ($n)"
|
||||
ret=0
|
||||
wait_for_soa @10.53.0.3 dom13.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
@ -1200,7 +1200,7 @@ status=$((status+ret))
|
||||
nextpart ns2/named.run >/dev/null
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "Adding domain dom13.example. to catalog1 zone with ns1 as master ($n)"
|
||||
echo_i "Adding domain dom13.example. to catalog1 zone with ns1 as primary ($n)"
|
||||
ret=0
|
||||
$NSUPDATE -d <<END >> nsupdate.out.test$n 2>&1 || ret=1
|
||||
server 10.53.0.1 ${PORT}
|
||||
@ -1212,7 +1212,7 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "waiting for slave to sync up ($n)"
|
||||
echo_i "waiting for secondary to sync up ($n)"
|
||||
ret=0
|
||||
wait_for_message ns2/named.run "catz: adding zone 'dom13.example' from catalog 'catalog1.example'" &&
|
||||
wait_for_message ns2/named.run "transfer of 'dom13.example/IN' from 10.53.0.1#${PORT}: Transfer status: success" || ret=1
|
||||
@ -1222,7 +1222,7 @@ status=$((status+ret))
|
||||
nextpart ns2/named.run >/dev/null
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom13.example. is served by slave and that it's the one from ns1 ($n)"
|
||||
echo_i "checking that dom13.example. is served by secondary and that it's the one from ns1 ($n)"
|
||||
ret=0
|
||||
wait_for_a @10.53.0.2 dom13.example. dig.out.test$n || ret=1
|
||||
grep "192.0.2.1" dig.out.test$n > /dev/null || ret=1
|
||||
@ -1230,7 +1230,7 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "Adding domain dom13.example. to catalog2 zone with ns3 as master ($n)"
|
||||
echo_i "Adding domain dom13.example. to catalog2 zone with ns3 as primary ($n)"
|
||||
ret=0
|
||||
$NSUPDATE -d <<END >> nsupdate.out.test$n 2>&1 || ret=1
|
||||
server 10.53.0.3 ${PORT}
|
||||
@ -1242,14 +1242,14 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "waiting for slave to sync up ($n)"
|
||||
echo_i "waiting for secondary to sync up ($n)"
|
||||
ret=0
|
||||
wait_for_message ns2/named.run "catz: update_from_db: new zone merged" || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom13.example. is served by slave and that it's still the one from ns1 ($n)"
|
||||
echo_i "checking that dom13.example. is served by secondary and that it's still the one from ns1 ($n)"
|
||||
ret=0
|
||||
wait_for_a @10.53.0.2 dom13.example. dig.out.test$n || ret=1
|
||||
grep "192.0.2.1" dig.out.test$n > /dev/null || ret=1
|
||||
@ -1271,14 +1271,14 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "waiting for slave to sync up ($n)"
|
||||
echo_i "waiting for secondary to sync up ($n)"
|
||||
ret=0
|
||||
wait_for_message ns2/named.run "catz: update_from_db: new zone merged" || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom13.example. is served by slave and that it's still the one from ns1 ($n)"
|
||||
echo_i "checking that dom13.example. is served by secondary and that it's still the one from ns1 ($n)"
|
||||
ret=0
|
||||
wait_for_a @10.53.0.2 dom13.example. dig.out.test$n || ret=1
|
||||
grep "192.0.2.1" dig.out.test$n > /dev/null || ret=1
|
||||
@ -1298,14 +1298,14 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "waiting for slave to sync up ($n)"
|
||||
echo_i "waiting for secondary to sync up ($n)"
|
||||
ret=0
|
||||
wait_for_message ns2/named.run "catz: update_from_db: new zone merged" || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom13.example. is no longer served by slave ($n)"
|
||||
echo_i "checking that dom13.example. is no longer served by secondary ($n)"
|
||||
ret=0
|
||||
wait_for_no_soa @10.53.0.2 dom13.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
@ -1314,41 +1314,41 @@ status=$((status+ret))
|
||||
##########################################################################
|
||||
echo_i "Testing having a regular zone and a zone in catalog zone of the same name"
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom14.example. is not served by master ($n)"
|
||||
echo_i "checking that dom14.example. is not served by primary ($n)"
|
||||
ret=0
|
||||
wait_for_no_soa @10.53.0.1 dom14.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "Adding a domain dom14.example. to master ns1 via RNDC ($n)"
|
||||
echo_i "Adding a domain dom14.example. to primary ns1 via RNDC ($n)"
|
||||
ret=0
|
||||
echo "@ 3600 IN SOA . . 1 3600 3600 3600 3600" > ns1/dom14.example.db
|
||||
echo "@ IN NS invalid." >> ns1/dom14.example.db
|
||||
echo "@ IN A 192.0.2.1" >> ns1/dom14.example.db
|
||||
rndccmd 10.53.0.1 addzone dom14.example. '{type master; file "dom14.example.db";};' || ret=1
|
||||
rndccmd 10.53.0.1 addzone dom14.example. '{type primary; file "dom14.example.db";};' || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom14.example. is now served by master ns1 ($n)"
|
||||
echo_i "checking that dom14.example. is now served by primary ns1 ($n)"
|
||||
ret=0
|
||||
wait_for_soa @10.53.0.1 dom14.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "Adding a domain dom14.example. to master ns3 via RNDC ($n)"
|
||||
echo_i "Adding a domain dom14.example. to primary ns3 via RNDC ($n)"
|
||||
ret=0
|
||||
echo "@ 3600 IN SOA . . 1 3600 3600 3600 3600" > ns3/dom14.example.db
|
||||
echo "@ IN NS invalid." >> ns3/dom14.example.db
|
||||
echo "@ IN A 192.0.2.2" >> ns3/dom14.example.db
|
||||
rndccmd 10.53.0.3 addzone dom14.example. '{type master; file "dom14.example.db";};' || ret=1
|
||||
rndccmd 10.53.0.3 addzone dom14.example. '{type primary; file "dom14.example.db";};' || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom14.example. is now served by master ns3 ($n)"
|
||||
echo_i "checking that dom14.example. is now served by primary ns3 ($n)"
|
||||
ret=0
|
||||
wait_for_soa @10.53.0.3 dom14.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
@ -1357,14 +1357,14 @@ status=$((status+ret))
|
||||
nextpart ns2/named.run >/dev/null
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "Adding domain dom14.example. with rndc with ns1 as master ($n)"
|
||||
echo_i "Adding domain dom14.example. with rndc with ns1 as primary ($n)"
|
||||
ret=0
|
||||
rndccmd 10.53.0.2 addzone dom14.example. '{type slave; masters {10.53.0.1;};};' || ret=1
|
||||
rndccmd 10.53.0.2 addzone dom14.example. '{type secondary; primaries {10.53.0.1;};};' || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "waiting for slave to sync up ($n)"
|
||||
echo_i "waiting for secondary to sync up ($n)"
|
||||
ret=0
|
||||
wait_for_message ns2/named.run "transfer of 'dom14.example/IN' from 10.53.0.1#${PORT}: Transfer status: success" || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
@ -1373,7 +1373,7 @@ status=$((status+ret))
|
||||
nextpart ns2/named.run >/dev/null
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom14.example. is served by slave and that it's the one from ns1 ($n)"
|
||||
echo_i "checking that dom14.example. is served by secondary and that it's the one from ns1 ($n)"
|
||||
ret=0
|
||||
wait_for_a @10.53.0.2 dom14.example. dig.out.test$n || ret=1
|
||||
grep "192.0.2.1" dig.out.test$n > /dev/null || ret=1
|
||||
@ -1381,7 +1381,7 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "Adding domain dom14.example. to catalog2 zone with ns3 as master ($n)"
|
||||
echo_i "Adding domain dom14.example. to catalog2 zone with ns3 as primary ($n)"
|
||||
ret=0
|
||||
$NSUPDATE -d <<END >> nsupdate.out.test$n 2>&1 || ret=1
|
||||
server 10.53.0.3 ${PORT}
|
||||
@ -1393,14 +1393,14 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "waiting for slave to sync up ($n)"
|
||||
echo_i "waiting for secondary to sync up ($n)"
|
||||
ret=0
|
||||
wait_for_message ns2/named.run "catz: update_from_db: new zone merged" || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom14.example. is served by slave and that it's still the one from ns1 ($n)"
|
||||
echo_i "checking that dom14.example. is served by secondary and that it's still the one from ns1 ($n)"
|
||||
ret=0
|
||||
wait_for_a @10.53.0.2 dom14.example. dig.out.test$n || ret=1
|
||||
grep "192.0.2.1" dig.out.test$n > /dev/null || ret=1
|
||||
@ -1422,14 +1422,14 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "waiting for slave to sync up ($n)"
|
||||
echo_i "waiting for secondary to sync up ($n)"
|
||||
ret=0
|
||||
wait_for_message ns2/named.run "catz: update_from_db: new zone merged" || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom14.example. is served by slave and that it's still the one from ns1 ($n)"
|
||||
echo_i "checking that dom14.example. is served by secondary and that it's still the one from ns1 ($n)"
|
||||
ret=0
|
||||
wait_for_a @10.53.0.2 dom14.example. dig.out.test$n || ret=1
|
||||
grep "192.0.2.1" dig.out.test$n > /dev/null || ret=1
|
||||
@ -1439,23 +1439,23 @@ status=$((status+ret))
|
||||
##########################################################################
|
||||
echo_i "Testing changing label for a member zone"
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom15.example. is not served by master ($n)"
|
||||
echo_i "checking that dom15.example. is not served by primary ($n)"
|
||||
ret=0
|
||||
wait_for_no_soa @10.53.0.1 dom15.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "Adding a domain dom15.example. to master ns1 via RNDC ($n)"
|
||||
echo_i "Adding a domain dom15.example. to primary ns1 via RNDC ($n)"
|
||||
ret=0
|
||||
echo "@ 3600 IN SOA . . 1 3600 3600 3600 3600" > ns1/dom15.example.db
|
||||
echo "@ IN NS invalid." >> ns1/dom15.example.db
|
||||
rndccmd 10.53.0.1 addzone dom15.example. '{type master; file "dom15.example.db";};' || ret=1
|
||||
rndccmd 10.53.0.1 addzone dom15.example. '{type primary; file "dom15.example.db";};' || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom15.example. is now served by master ns1 ($n)"
|
||||
echo_i "checking that dom15.example. is now served by primary ns1 ($n)"
|
||||
ret=0
|
||||
wait_for_soa @10.53.0.1 dom15.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
@ -1474,7 +1474,7 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "waiting for slave to sync up ($n)"
|
||||
echo_i "waiting for secondary to sync up ($n)"
|
||||
ret=0
|
||||
wait_for_message ns2/named.run "catz: update_from_db: new zone merged" || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
@ -1483,7 +1483,7 @@ status=$((status+ret))
|
||||
sleep 3
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom15.example. is served by slave ($n)"
|
||||
echo_i "checking that dom15.example. is served by secondary ($n)"
|
||||
ret=0
|
||||
wait_for_soa @10.53.0.2 dom15.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
@ -1504,14 +1504,14 @@ if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "waiting for slave to sync up ($n)"
|
||||
echo_i "waiting for secondary to sync up ($n)"
|
||||
ret=0
|
||||
wait_for_message ns2/named.run "catz: update_from_db: new zone merged" || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking that dom15.example. is served by slave ($n)"
|
||||
echo_i "checking that dom15.example. is served by secondary ($n)"
|
||||
ret=0
|
||||
wait_for_soa @10.53.0.2 dom15.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
|
@ -22,4 +22,4 @@ options {
|
||||
notify yes;
|
||||
};
|
||||
|
||||
zone "." { type master; file "root.db"; };
|
||||
zone "." { type primary; file "root.db"; };
|
||||
|
@ -25,28 +25,28 @@ options {
|
||||
};
|
||||
|
||||
zone "example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "example.db.signed";
|
||||
allow-update { any; };
|
||||
};
|
||||
|
||||
zone "sub2.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "sub.db";
|
||||
};
|
||||
|
||||
zone "signed-sub2.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "sub.db";
|
||||
};
|
||||
|
||||
zone "domain0.nil" { type master; file "generic.db"; };
|
||||
zone "domain1.nil" { type master; file "generic.db"; };
|
||||
zone "domain2.nil" { type master; file "generic.db"; };
|
||||
zone "domain3.nil" { type master; file "generic.db"; };
|
||||
zone "domain4.nil" { type master; file "generic.db"; };
|
||||
zone "domain5.nil" { type master; file "generic.db"; };
|
||||
zone "domain6.nil" { type master; file "generic.db"; };
|
||||
zone "domain7.nil" { type master; file "generic.db"; };
|
||||
zone "domain8.nil" { type master; file "generic.db"; };
|
||||
zone "domain9.nil" { type master; file "generic.db"; };
|
||||
zone "domain0.nil" { type primary; file "generic.db"; };
|
||||
zone "domain1.nil" { type primary; file "generic.db"; };
|
||||
zone "domain2.nil" { type primary; file "generic.db"; };
|
||||
zone "domain3.nil" { type primary; file "generic.db"; };
|
||||
zone "domain4.nil" { type primary; file "generic.db"; };
|
||||
zone "domain5.nil" { type primary; file "generic.db"; };
|
||||
zone "domain6.nil" { type primary; file "generic.db"; };
|
||||
zone "domain7.nil" { type primary; file "generic.db"; };
|
||||
zone "domain8.nil" { type primary; file "generic.db"; };
|
||||
zone "domain9.nil" { type primary; file "generic.db"; };
|
||||
|
@ -30,11 +30,11 @@ zone "." {
|
||||
};
|
||||
|
||||
zone "sub5.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "sub.db";
|
||||
};
|
||||
|
||||
zone "signed-sub5.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "sub.db";
|
||||
};
|
||||
|
@ -168,8 +168,8 @@ EOF
|
||||
[ $? -eq 1 ] || { echo_i "options + view $field failed" ; ret=1; }
|
||||
cat > badzero.conf << EOF
|
||||
zone dummy {
|
||||
type slave;
|
||||
masters { 0.0.0.0; };
|
||||
type secondary;
|
||||
primaries { 0.0.0.0; };
|
||||
$field 0;
|
||||
};
|
||||
EOF
|
||||
@ -180,7 +180,7 @@ if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
n=`expr $n + 1`
|
||||
echo_i "checking options allowed in inline-signing slaves ($n)"
|
||||
echo_i "checking options allowed in inline-signing secondaries ($n)"
|
||||
ret=0
|
||||
$CHECKCONF bad-dnssec.conf > checkconf.out$n.1 2>&1
|
||||
l=`grep "dnssec-dnskey-kskonly.*requires inline" < checkconf.out$n.1 | wc -l`
|
||||
@ -195,7 +195,7 @@ if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
n=`expr $n + 1`
|
||||
echo_i "check file + inline-signing for slave zones ($n)"
|
||||
echo_i "check file + inline-signing for secondary zones ($n)"
|
||||
$CHECKCONF inline-no.conf > checkconf.out$n.1 2>&1
|
||||
l=`grep "missing 'file' entry" < checkconf.out$n.1 | wc -l`
|
||||
[ $l -eq 0 ] || ret=1
|
||||
|
@ -24,44 +24,44 @@ options {
|
||||
};
|
||||
|
||||
zone "." {
|
||||
type master;
|
||||
type primary;
|
||||
file "root.db";
|
||||
};
|
||||
|
||||
zone "ignore.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "ignore.example.db";
|
||||
check-names ignore;
|
||||
};
|
||||
|
||||
zone "warn.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "warn.example.db";
|
||||
check-names warn;
|
||||
};
|
||||
|
||||
zone "fail.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "fail.example.db";
|
||||
check-names fail;
|
||||
};
|
||||
|
||||
zone "ignore.update" {
|
||||
type master;
|
||||
type primary;
|
||||
file "ignore.update.db";
|
||||
allow-update { any; };
|
||||
check-names ignore;
|
||||
};
|
||||
|
||||
zone "warn.update" {
|
||||
type master;
|
||||
type primary;
|
||||
file "warn.update.db";
|
||||
allow-update { any; };
|
||||
check-names warn;
|
||||
};
|
||||
|
||||
zone "fail.update" {
|
||||
type master;
|
||||
type primary;
|
||||
file "fail.update.db";
|
||||
allow-update { any; };
|
||||
check-names fail;
|
||||
|
@ -29,7 +29,7 @@ zone "." {
|
||||
};
|
||||
|
||||
zone "master-ignore.update" {
|
||||
type master;
|
||||
type primary;
|
||||
file "master-ignore.update.db";
|
||||
allow-update { any; };
|
||||
};
|
||||
|
@ -44,6 +44,6 @@ zone "." {
|
||||
};
|
||||
|
||||
zone "example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "example.db";
|
||||
};
|
||||
|
@ -24,6 +24,6 @@ options {
|
||||
};
|
||||
|
||||
zone "." {
|
||||
type master;
|
||||
type primary;
|
||||
file "root.db";
|
||||
};
|
||||
|
@ -45,6 +45,6 @@ zone "." {
|
||||
};
|
||||
|
||||
zone "example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "example.db";
|
||||
};
|
||||
|
@ -24,6 +24,6 @@ options {
|
||||
};
|
||||
|
||||
zone "." {
|
||||
type master;
|
||||
type primary;
|
||||
file "root.db";
|
||||
};
|
||||
|
@ -32,6 +32,6 @@ options {
|
||||
};
|
||||
|
||||
zone "example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "example.db";
|
||||
};
|
||||
|
@ -34,6 +34,6 @@ options {
|
||||
};
|
||||
|
||||
zone "database" {
|
||||
type master;
|
||||
type primary;
|
||||
database "_builtin empty localhost. hostmaster.isc.org.";
|
||||
};
|
||||
|
@ -34,6 +34,6 @@ options {
|
||||
};
|
||||
|
||||
zone "database" {
|
||||
type master;
|
||||
type primary;
|
||||
database "_builtin empty localhost. marka.isc.org.";
|
||||
};
|
||||
|
@ -17,7 +17,7 @@ rm -f ns2/*.nzd ns2/*nzd-lock
|
||||
rm -f ns2/core*
|
||||
rm -f ns2/inline.db.jbk
|
||||
rm -f ns2/inline.db.signed
|
||||
rm -f ns2/inlineslave.bk*
|
||||
rm -f ns2/inlinesec.bk*
|
||||
rm -f ns*/named.lock
|
||||
rm -f ns2/nzf-*
|
||||
rm -f ns*/managed-keys.bind*
|
||||
|
@ -7,7 +7,7 @@
|
||||
; See the COPYRIGHT file distributed with this work for additional
|
||||
; information regarding copyright ownership.
|
||||
|
||||
$ORIGIN inlineslave.example.
|
||||
$ORIGIN inlinesec.example.
|
||||
$TTL 300 ; 5 minutes
|
||||
@ IN SOA mname1. . (
|
||||
1 ; serial
|
@ -26,7 +26,7 @@ zone "." {
|
||||
file "../../common/root.hint";
|
||||
};
|
||||
|
||||
zone "inlineslave.example" {
|
||||
type master;
|
||||
file "inlineslave.db";
|
||||
zone "inlinesec.example" {
|
||||
type primary;
|
||||
file "inlinesec.db";
|
||||
};
|
||||
|
@ -23,6 +23,6 @@ options {
|
||||
};
|
||||
|
||||
zone "." {
|
||||
type master;
|
||||
type primary;
|
||||
file "root.db";
|
||||
};
|
||||
|
@ -27,6 +27,6 @@ zone "." {
|
||||
};
|
||||
|
||||
zone "example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "example.db";
|
||||
};
|
||||
|
@ -62,7 +62,7 @@ dlz redzone {
|
||||
};
|
||||
|
||||
zone zone.nil {
|
||||
type master;
|
||||
type primary;
|
||||
dlz unsearched2;
|
||||
};
|
||||
|
||||
@ -72,6 +72,6 @@ zone "." {
|
||||
};
|
||||
|
||||
zone "." {
|
||||
type master;
|
||||
type primary;
|
||||
file "root.db";
|
||||
};
|
||||
|
@ -35,17 +35,17 @@ options {
|
||||
};
|
||||
|
||||
zone "." {
|
||||
type master;
|
||||
type primary;
|
||||
file "root.db";
|
||||
};
|
||||
|
||||
zone "example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "example.db";
|
||||
};
|
||||
|
||||
zone "signed" {
|
||||
type master;
|
||||
type primary;
|
||||
file "signed.db.signed";
|
||||
};
|
||||
|
||||
|
@ -64,6 +64,6 @@ zone "." {
|
||||
};
|
||||
|
||||
zone "rpz" {
|
||||
type master;
|
||||
type primary;
|
||||
file "rpz.db";
|
||||
};
|
||||
|
@ -27,7 +27,7 @@ options {
|
||||
};
|
||||
|
||||
zone "." {
|
||||
type master;
|
||||
type primary;
|
||||
file "root.db.signed";
|
||||
};
|
||||
|
||||
|
@ -41,132 +41,132 @@ zone "." {
|
||||
};
|
||||
|
||||
zone "trusted" {
|
||||
type master;
|
||||
type primary;
|
||||
file "trusted.db.signed";
|
||||
};
|
||||
|
||||
zone "managed" {
|
||||
type master;
|
||||
type primary;
|
||||
file "managed.db.signed";
|
||||
};
|
||||
|
||||
zone "example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "example.db.signed";
|
||||
allow-update { any; };
|
||||
};
|
||||
|
||||
zone "insecure.secure.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "insecure.secure.example.db";
|
||||
allow-update { any; };
|
||||
};
|
||||
|
||||
zone "rfc2335.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "rfc2335.example.db";
|
||||
};
|
||||
|
||||
zone "child.nsec3.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "child.nsec3.example.db";
|
||||
allow-update { none; };
|
||||
};
|
||||
|
||||
zone "child.optout.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "child.optout.example.db";
|
||||
allow-update { none; };
|
||||
};
|
||||
|
||||
zone "badparam" {
|
||||
type master;
|
||||
type primary;
|
||||
file "badparam.db.bad";
|
||||
};
|
||||
|
||||
zone "single-nsec3" {
|
||||
type master;
|
||||
type primary;
|
||||
file "single-nsec3.db.signed";
|
||||
};
|
||||
|
||||
zone "algroll" {
|
||||
type master;
|
||||
type primary;
|
||||
file "algroll.db.signed";
|
||||
};
|
||||
|
||||
zone "nsec3chain-test" {
|
||||
type master;
|
||||
type primary;
|
||||
file "nsec3chain-test.db.signed";
|
||||
allow-update {any;};
|
||||
};
|
||||
|
||||
zone "in-addr.arpa" {
|
||||
type master;
|
||||
type primary;
|
||||
file "in-addr.arpa.db.signed";
|
||||
};
|
||||
|
||||
zone "cds.secure" {
|
||||
type master;
|
||||
type primary;
|
||||
file "cds.secure.db.signed";
|
||||
};
|
||||
|
||||
zone "cds-x.secure" {
|
||||
type master;
|
||||
type primary;
|
||||
file "cds-x.secure.db.signed";
|
||||
};
|
||||
|
||||
zone "cds-update.secure" {
|
||||
type master;
|
||||
type primary;
|
||||
file "cds-update.secure.db.signed";
|
||||
allow-update { any; };
|
||||
};
|
||||
|
||||
zone "cds-kskonly.secure" {
|
||||
type master;
|
||||
type primary;
|
||||
dnssec-dnskey-kskonly yes;
|
||||
file "cds-kskonly.secure.db.signed";
|
||||
allow-update { any; };
|
||||
};
|
||||
|
||||
zone "cds-auto.secure" {
|
||||
type master;
|
||||
type primary;
|
||||
file "cds-auto.secure.db.signed";
|
||||
auto-dnssec maintain;
|
||||
allow-update { any; };
|
||||
};
|
||||
|
||||
zone "cdnskey.secure" {
|
||||
type master;
|
||||
type primary;
|
||||
file "cdnskey.secure.db.signed";
|
||||
};
|
||||
|
||||
zone "cdnskey-x.secure" {
|
||||
type master;
|
||||
type primary;
|
||||
file "cdnskey-x.secure.db.signed";
|
||||
};
|
||||
|
||||
zone "cdnskey-update.secure" {
|
||||
type master;
|
||||
type primary;
|
||||
file "cdnskey-update.secure.db.signed";
|
||||
allow-update { any; };
|
||||
};
|
||||
|
||||
zone "cdnskey-kskonly.secure" {
|
||||
type master;
|
||||
type primary;
|
||||
dnssec-dnskey-kskonly yes;
|
||||
file "cdnskey-kskonly.secure.db.signed";
|
||||
allow-update { any; };
|
||||
};
|
||||
|
||||
zone "cdnskey-auto.secure" {
|
||||
type master;
|
||||
type primary;
|
||||
file "cdnskey-auto.secure.db.signed";
|
||||
auto-dnssec maintain;
|
||||
allow-update { any; };
|
||||
};
|
||||
|
||||
zone "updatecheck-kskonly.secure" {
|
||||
type master;
|
||||
type primary;
|
||||
auto-dnssec maintain;
|
||||
key-directory ".";
|
||||
dnssec-dnskey-kskonly yes;
|
||||
@ -178,7 +178,7 @@ zone "updatecheck-kskonly.secure" {
|
||||
};
|
||||
|
||||
zone "corp" {
|
||||
type master;
|
||||
type primary;
|
||||
file "corp.db";
|
||||
};
|
||||
|
||||
|
@ -41,325 +41,325 @@ zone "." {
|
||||
};
|
||||
|
||||
zone "example" {
|
||||
type slave;
|
||||
type secondary;
|
||||
primaries { 10.53.0.2; };
|
||||
file "example.bk";
|
||||
};
|
||||
|
||||
zone "secure.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "secure.example.db.signed";
|
||||
allow-update { any; };
|
||||
};
|
||||
|
||||
zone "bogus.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "bogus.example.db.signed";
|
||||
allow-update { any; };
|
||||
};
|
||||
|
||||
zone "badds.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "badds.example.db.signed";
|
||||
allow-update { any; };
|
||||
};
|
||||
|
||||
zone "dynamic.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "dynamic.example.db.signed";
|
||||
allow-update { any; };
|
||||
};
|
||||
|
||||
zone "insecure.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "insecure.example.db";
|
||||
allow-update { any; };
|
||||
};
|
||||
|
||||
zone "insecure.nsec3.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "insecure.nsec3.example.db";
|
||||
allow-update { any; };
|
||||
};
|
||||
|
||||
zone "insecure.optout.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "insecure.optout.example.db";
|
||||
allow-update { any; };
|
||||
};
|
||||
|
||||
zone "keyless.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "keyless.example.db.signed";
|
||||
};
|
||||
|
||||
zone "nsec3.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "nsec3.example.db.signed";
|
||||
};
|
||||
|
||||
zone "optout.nsec3.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "optout.nsec3.example.db.signed";
|
||||
};
|
||||
|
||||
zone "nsec3.nsec3.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "nsec3.nsec3.example.db.signed";
|
||||
};
|
||||
|
||||
zone "secure.nsec3.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "secure.nsec3.example.db.signed";
|
||||
};
|
||||
|
||||
zone "optout.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "optout.example.db.signed";
|
||||
};
|
||||
|
||||
zone "secure.optout.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "secure.optout.example.db.signed";
|
||||
};
|
||||
|
||||
zone "nsec3.optout.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "nsec3.optout.example.db.signed";
|
||||
};
|
||||
|
||||
zone "optout.optout.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "optout.optout.example.db.signed";
|
||||
};
|
||||
|
||||
zone "nsec3-unknown.example" {
|
||||
type master;
|
||||
type primary;
|
||||
nsec3-test-zone yes;
|
||||
file "nsec3-unknown.example.db.signed";
|
||||
};
|
||||
|
||||
zone "optout-unknown.example" {
|
||||
type master;
|
||||
type primary;
|
||||
nsec3-test-zone yes;
|
||||
file "optout-unknown.example.db.signed";
|
||||
};
|
||||
|
||||
zone "dnskey-unknown.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "dnskey-unknown.example.db.signed";
|
||||
};
|
||||
|
||||
zone "dnskey-unsupported.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "dnskey-unsupported.example.db.signed";
|
||||
};
|
||||
|
||||
zone "dnskey-unsupported-2.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "dnskey-unsupported-2.example.db.signed";
|
||||
};
|
||||
|
||||
zone "dnskey-nsec3-unknown.example" {
|
||||
type master;
|
||||
type primary;
|
||||
nsec3-test-zone yes;
|
||||
file "dnskey-nsec3-unknown.example.db.signed";
|
||||
};
|
||||
|
||||
zone "multiple.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "multiple.example.db.signed";
|
||||
allow-update { any; };
|
||||
};
|
||||
|
||||
zone "rfc2335.example" {
|
||||
type slave;
|
||||
type secondary;
|
||||
primaries { 10.53.0.2; };
|
||||
file "rfc2335.example.bk";
|
||||
};
|
||||
|
||||
zone "rsasha256.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "rsasha256.example.db.signed";
|
||||
};
|
||||
|
||||
zone "rsasha512.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "rsasha512.example.db.signed";
|
||||
};
|
||||
|
||||
zone "kskonly.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "kskonly.example.db.signed";
|
||||
};
|
||||
|
||||
zone "expired.example" {
|
||||
type master;
|
||||
type primary;
|
||||
allow-update { none; };
|
||||
file "expired.example.db.signed";
|
||||
};
|
||||
|
||||
zone "update-nsec3.example" {
|
||||
type master;
|
||||
type primary;
|
||||
allow-update { any; };
|
||||
file "update-nsec3.example.db.signed";
|
||||
};
|
||||
|
||||
zone "auto-nsec.example" {
|
||||
type master;
|
||||
type primary;
|
||||
auto-dnssec maintain;
|
||||
allow-update { !0.0.0.0; };
|
||||
file "auto-nsec.example.db.signed";
|
||||
};
|
||||
|
||||
zone "auto-nsec3.example" {
|
||||
type master;
|
||||
type primary;
|
||||
auto-dnssec maintain;
|
||||
allow-update { !0.0.0.0; };
|
||||
file "auto-nsec3.example.db.signed";
|
||||
};
|
||||
|
||||
zone "insecure.below-cname.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "insecure.below-cname.example.db";
|
||||
};
|
||||
|
||||
zone "secure.below-cname.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "secure.below-cname.example.db.signed";
|
||||
};
|
||||
|
||||
zone "ttlpatch.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "ttlpatch.example.db.patched";
|
||||
};
|
||||
|
||||
zone "split-dnssec.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "split-dnssec.example.db";
|
||||
};
|
||||
|
||||
zone "split-smart.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "split-smart.example.db";
|
||||
};
|
||||
|
||||
zone "nsec3chain-test" {
|
||||
type slave;
|
||||
type secondary;
|
||||
file "nsec3chain-test.bk";
|
||||
primaries { 10.53.0.2; };
|
||||
};
|
||||
|
||||
zone "expiring.example" {
|
||||
type master;
|
||||
type primary;
|
||||
allow-update { any; };
|
||||
file "expiring.example.db.signed";
|
||||
};
|
||||
|
||||
zone "nosign.example" {
|
||||
type master;
|
||||
type primary;
|
||||
allow-update { any; };
|
||||
dnssec-update-mode no-resign;
|
||||
file "nosign.example.db.signed";
|
||||
};
|
||||
|
||||
zone "upper.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "upper.example.db.signed";
|
||||
};
|
||||
|
||||
zone "LOWER.EXAMPLE" {
|
||||
type master;
|
||||
type primary;
|
||||
file "lower.example.db.signed";
|
||||
};
|
||||
|
||||
zone "inline.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "inline.example.db";
|
||||
inline-signing yes;
|
||||
auto-dnssec maintain;
|
||||
};
|
||||
|
||||
zone "publish-inactive.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "publish-inactive.example.db";
|
||||
auto-dnssec maintain;
|
||||
update-policy local;
|
||||
};
|
||||
|
||||
zone "future.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "future.example.db.signed";
|
||||
};
|
||||
|
||||
zone "managed-future.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "managed-future.example.db.signed";
|
||||
allow-update { any; };
|
||||
};
|
||||
|
||||
zone "revkey.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "revkey.example.db.signed";
|
||||
};
|
||||
|
||||
zone "dname-at-apex-nsec3.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "dname-at-apex-nsec3.example.db.signed";
|
||||
};
|
||||
|
||||
zone "occluded.example" {
|
||||
type master;
|
||||
type primary;
|
||||
file "occluded.example.db.signed";
|
||||
};
|
||||
|
||||
zone "secure.managed" {
|
||||
type master;
|
||||
type primary;
|
||||
file "secure.managed.db.signed";
|
||||
};
|
||||
|
||||
zone "disabled.managed" {
|
||||
type master;
|
||||
type primary;
|
||||
file "disabled.managed.db.signed";
|
||||
};
|
||||
|
||||
zone "enabled.managed" {
|
||||
type master;
|
||||
type primary;
|
||||
file "enabled.managed.db.signed";
|
||||
};
|
||||
|
||||
zone "unsupported.managed" {
|
||||
type master;
|
||||
type primary;
|
||||
file "unsupported.managed.db.signed";
|
||||
};
|
||||
|
||||
zone "revoked.managed" {
|
||||
type master;
|
||||
type primary;
|
||||
file "revoked.managed.db.signed";
|
||||
};
|
||||
|
||||
zone "secure.trusted" {
|
||||
type master;
|
||||
type primary;
|
||||
file "secure.trusted.db.signed";
|
||||
};
|
||||
|
||||
zone "disabled.trusted" {
|
||||
type master;
|
||||
type primary;
|
||||
file "disabled.trusted.db.signed";
|
||||
};
|
||||
|
||||
zone "enabled.trusted" {
|
||||
type master;
|
||||
type primary;
|
||||
file "enabled.trusted.db.signed";
|
||||
};
|
||||
|
||||
zone "unsupported.trusted" {
|
||||
type master;
|
||||
type primary;
|
||||
file "unsupported.trusted.db.signed";
|
||||
};
|
||||
|
||||
zone "revoked.trusted" {
|
||||
type master;
|
||||
type primary;
|
||||
file "revoked.trusted.db.signed";
|
||||
};
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
*/
|
||||
|
||||
zone "siginterval.example" {
|
||||
type master;
|
||||
type primary;
|
||||
allow-update { any; };
|
||||
sig-validity-interval 1 23;
|
||||
dnskey-sig-validity 90;
|
||||
|
@ -10,7 +10,7 @@
|
||||
*/
|
||||
|
||||
zone "siginterval.example" {
|
||||
type master;
|
||||
type primary;
|
||||
allow-update { any; };
|
||||
sig-validity-interval 35 28;
|
||||
dnskey-sig-validity 90;
|
||||
|
@ -64,12 +64,12 @@ view auth {
|
||||
allow-recursion { none; };
|
||||
|
||||
zone secure.example {
|
||||
type slave;
|
||||
type secondary;
|
||||
primaries { 10.53.0.3; };
|
||||
};
|
||||
|
||||
zone insecure.secure.example {
|
||||
type slave;
|
||||
type secondary;
|
||||
primaries { 10.53.0.2; };
|
||||
};
|
||||
};
|
||||
|
@ -35,7 +35,7 @@ view root {
|
||||
match-destinations { 127.0.0.1; };
|
||||
|
||||
zone "." {
|
||||
type master;
|
||||
type primary;
|
||||
file "root.db.signed";
|
||||
};
|
||||
};
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user