mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-27 20:25:55 -04:00
Check that the UDP destination port is logged via dnstap
(cherry picked from commit 8d8396c3a7)
This commit is contained in:
parent
457b666c6f
commit
5b56aa68af
1 changed files with 6 additions and 0 deletions
|
|
@ -518,6 +518,12 @@ ret=0
|
|||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo_i "checking whether destination UDP port is logged for client queries"
|
||||
ret=0
|
||||
$DNSTAPREAD ns3/dnstap.out.save | grep -Eq "CQ [0-9:.]+ -> 10.53.0.3:${PORT} UDP" || ret=1
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
HAS_PYYAML=0
|
||||
if [ -x "$PYTHON" ] ; then
|
||||
$PYTHON -c "import yaml" 2> /dev/null && HAS_PYYAML=1
|
||||
|
|
|
|||
Loading…
Reference in a new issue