3164. [func] Enable DLZ modules to retrieve client information,
so that responses can be changed depending on the source address of the query. [RT #25768]
This commit is contained in:
@@ -52,4 +52,12 @@ status=`expr $status + $ret`
|
||||
test_update deny.example.nil. TXT "86400 TXT helloworld" "helloworld" should_fail && ret=1
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo "I:testing passing client info into DLZ driver"
|
||||
ret=0
|
||||
out=`$DIG $DIGOPTS +short -t txt -q source-addr.example.nil`
|
||||
addr=`eval echo $out | cut -f1 -d'#'`
|
||||
[ "$addr" = "10.53.0.1" ] || ret=1
|
||||
[ "$ret" -eq 0 ] || echo "I:failed"
|
||||
status=`expr $status + $ret`
|
||||
|
||||
exit $status
|
||||
|
||||
Reference in New Issue
Block a user