diff options
Diffstat (limited to 'external/bsd/unbound/dist/testdata/auth_https.tdir/auth_https.test')
| -rw-r--r-- | external/bsd/unbound/dist/testdata/auth_https.tdir/auth_https.test | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/external/bsd/unbound/dist/testdata/auth_https.tdir/auth_https.test b/external/bsd/unbound/dist/testdata/auth_https.tdir/auth_https.test index cff93544b14..c2471b7d643 100644 --- a/external/bsd/unbound/dist/testdata/auth_https.tdir/auth_https.test +++ b/external/bsd/unbound/dist/testdata/auth_https.tdir/auth_https.test @@ -5,6 +5,7 @@ [ -f .tpkg.var.test ] && source .tpkg.var.test PRE="../.." +. ../common.sh # do the test echo "> dig www.example.com." dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile @@ -48,4 +49,15 @@ else exit 1 fi +# Test that notify is allowed from the webserver address +get_ldns_notify +echo "> ldns-notify -z example.com" +$LDNS_NOTIFY -p $UNBOUND_PORT -z example.com 127.0.0.1 | tee outfile +if grep "rcode: REFUSED" outfile; then + echo "Not OK" + exit 1 +else + echo "OK" +fi + exit 0 |
