run test DNS on port 5300

This commit is contained in:
Andreas Gustafsson
2000-06-06 23:41:55 +00:00
parent 1c4ecfd97e
commit ca793cbfcf
5 changed files with 16 additions and 10 deletions

View File

@@ -1,6 +1,7 @@
//NS1
// NS1
options {
port 5300;
directory ".";
pid-file "named.pid";
listen-on { 10.53.0.1; };

View File

@@ -1,6 +1,7 @@
// NS2
options {
port 5300;
pid-file "named.pid";
listen-on { 10.53.0.2; };
recursion no;

View File

@@ -1,6 +1,7 @@
// NS3
options {
port 5300;
pid-file "named.pid";
listen-on { 10.53.0.3; };
recursion no;

View File

@@ -1,6 +1,7 @@
// NS4
options {
port 5300;
directory ".";
pid-file "named.pid";
listen-on { 10.53.0.4; };

View File

@@ -30,13 +30,15 @@ status=0
rm -f dig.out.*
DIGOPTS="+tcp +noadd +nosea +nostat +noquest +nocomm +nocmd -p 5300"
# Check the example. domain
$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
$DIG $DIGOPTS \
a.example. @10.53.0.2 a > dig.out.ns2
status=`expr $status + $?`
grep ";" dig.out.ns2
$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
$DIG $DIGOPTS \
a.example. @10.53.0.3 a > dig.out.ns3
status=`expr $status + $?`
grep ";" dig.out.ns3
@@ -46,12 +48,12 @@ status=`expr $status + $?`
rm -f dig.out.*
$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd +noauth \
$DIG $DIGOPTS +noauth \
a.example. @10.53.0.2 a > dig.out.ns2
status=`expr $status + $?`
grep ";" dig.out.ns2
$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd +noauth \
$DIG $DIGOPTS +noauth \
a.example. @10.53.0.4 a > dig.out.ns4
status=`expr $status + $?`
grep ";" dig.out.ns2
@@ -63,12 +65,12 @@ status=`expr $status + $?`
rm -f dig.out.*
$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
$DIG $DIGOPTS \
a.insecure.example. @10.53.0.3 a > dig.out.ns3
status=`expr $status + $?`
grep ";" dig.out.ns3
$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
$DIG $DIGOPTS \
a.insecure.example. @10.53.0.4 a > dig.out.ns4
status=`expr $status + $?`
grep ";" dig.out.ns4
@@ -80,12 +82,12 @@ status=`expr $status + $?`
rm -f dig.out.*
$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
$DIG $DIGOPTS \
a.secure.example. @10.53.0.3 a > dig.out.ns3
status=`expr $status + $?`
grep ";" dig.out.ns3
$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
$DIG $DIGOPTS \
a.secure.example. @10.53.0.4 a > dig.out.ns4
status=`expr $status + $?`
grep ";" dig.out.ns4
@@ -97,7 +99,7 @@ status=`expr $status + $?`
rm -f dig.out.*
$DIG +tcp +noadd +nosea +nostat +noquest +nocmd \
$DIG +tcp +noadd +nosea +nostat +noquest +nocmd -p 5300 \
a.bogus.example. @10.53.0.4 a > dig.out.ns4
grep "SERVFAIL" dig.out.ns4 > /dev/null
status=`expr $status + $?`