3593. [func] Update EDNS processing to better track remote server
capabilities. [RT #30655]
This commit is contained in:
@@ -27,56 +27,56 @@ status=0
|
||||
|
||||
echo "I:checking that a forward zone overrides global forwarders"
|
||||
ret=0
|
||||
$DIG txt.example1. txt @$hidden -p 5300 > dig.out.hidden || ret=1
|
||||
$DIG txt.example1. txt @$f1 -p 5300 > dig.out.f1 || ret=1
|
||||
$DIG +noadd +noauth txt.example1. txt @$hidden -p 5300 > dig.out.hidden || ret=1
|
||||
$DIG +noadd +noauth txt.example1. txt @$f1 -p 5300 > dig.out.f1 || ret=1
|
||||
$PERL ../digcomp.pl dig.out.hidden dig.out.f1 || ret=1
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo "I:checking that a forward first zone no forwarders recurses"
|
||||
ret=0
|
||||
$DIG txt.example2. txt @$root -p 5300 > dig.out.root || ret=1
|
||||
$DIG txt.example2. txt @$f1 -p 5300 > dig.out.f1 || ret=1
|
||||
$DIG +noadd +noauth txt.example2. txt @$root -p 5300 > dig.out.root || ret=1
|
||||
$DIG +noadd +noauth txt.example2. txt @$f1 -p 5300 > dig.out.f1 || ret=1
|
||||
$PERL ../digcomp.pl dig.out.root dig.out.f1 || ret=1
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo "I:checking that a forward only zone no forwarders fails"
|
||||
ret=0
|
||||
$DIG txt.example2. txt @$root -p 5300 > dig.out.root || ret=1
|
||||
$DIG txt.example2. txt @$f1 -p 5300 > dig.out.f1 || ret=1
|
||||
$DIG +noadd +noauth txt.example2. txt @$root -p 5300 > dig.out.root || ret=1
|
||||
$DIG +noadd +noauth txt.example2. txt @$f1 -p 5300 > dig.out.f1 || ret=1
|
||||
$PERL ../digcomp.pl dig.out.root dig.out.f1 || ret=1
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo "I:checking that global forwarders work"
|
||||
ret=0
|
||||
$DIG txt.example4. txt @$hidden -p 5300 > dig.out.hidden || ret=1
|
||||
$DIG txt.example4. txt @$f1 -p 5300 > dig.out.f1 || ret=1
|
||||
$DIG +noadd +noauth txt.example4. txt @$hidden -p 5300 > dig.out.hidden || ret=1
|
||||
$DIG +noadd +noauth txt.example4. txt @$f1 -p 5300 > dig.out.f1 || ret=1
|
||||
$PERL ../digcomp.pl dig.out.hidden dig.out.f1 || ret=1
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo "I:checking that a forward zone works"
|
||||
ret=0
|
||||
$DIG txt.example1. txt @$hidden -p 5300 > dig.out.hidden || ret=1
|
||||
$DIG txt.example1. txt @$f2 -p 5300 > dig.out.f2 || ret=1
|
||||
$DIG +noadd +noauth txt.example1. txt @$hidden -p 5300 > dig.out.hidden || ret=1
|
||||
$DIG +noadd +noauth txt.example1. txt @$f2 -p 5300 > dig.out.f2 || ret=1
|
||||
$PERL ../digcomp.pl dig.out.hidden dig.out.f2 || ret=1
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo "I:checking that forwarding doesn't spontaneously happen"
|
||||
ret=0
|
||||
$DIG txt.example2. txt @$root -p 5300 > dig.out.root || ret=1
|
||||
$DIG txt.example2. txt @$f2 -p 5300 > dig.out.f2 || ret=1
|
||||
$DIG +noadd +noauth txt.example2. txt @$root -p 5300 > dig.out.root || ret=1
|
||||
$DIG +noadd +noauth txt.example2. txt @$f2 -p 5300 > dig.out.f2 || ret=1
|
||||
$PERL ../digcomp.pl dig.out.root dig.out.f2 || ret=1
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo "I:checking that a forward zone with no specified policy works"
|
||||
ret=0
|
||||
$DIG txt.example3. txt @$hidden -p 5300 > dig.out.hidden || ret=1
|
||||
$DIG txt.example3. txt @$f2 -p 5300 > dig.out.f2 || ret=1
|
||||
$DIG +noadd +noauth txt.example3. txt @$hidden -p 5300 > dig.out.hidden || ret=1
|
||||
$DIG +noadd +noauth txt.example3. txt @$f2 -p 5300 > dig.out.f2 || ret=1
|
||||
$PERL ../digcomp.pl dig.out.hidden dig.out.f2 || ret=1
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
Reference in New Issue
Block a user