qname. All these queries should receive, if applicable, additional
processing and further records in the additional section. This test might
fail because of different record ordering - check the diff to be sure.
+(The NSEC3-variant has a superfluous but harmless NSEC3).
--- /dev/null
+0 9f8hti7cc7oqnqjv84klnp89glqrss3r.example.com. IN NSEC3 120 1 1 1 abcd 9FDAOFPLLN0FQFU9DP274GOU59QFHSLD A RRSIG
+0 example.com. IN DNSKEY 120 256 3 5 AwEAAarTiHhPgvD28WCN8UBXcEcf8f+OF+d/bEoN6zTuHl/oVra5/qfonhYK/RjI74RzHc2wli9TpXOWycQV3YSfpFZ9z+GB/bbsvBon1XMyNf5KXuOwRdHZXIZh1cku3AcIyNroD26MPkbFLHY0+xRI+7u7OsQ6nYcPBpqDiJnB2BMh
+0 example.com. IN MX 120 10 smtp-servers.example.com.
+0 example.com. IN MX 120 15 smtp-servers.test.com.
+0 example.com. IN NS 120 ns1.example.com.
+0 example.com. IN NS 120 ns2.example.com.
+0 example.com. IN SOA 120 ns1.example.com. ahu.example.com. 2000081501 28800 7200 604800 86400
+0 vtnq6ocn2vkuiv3nju14oqtaen2mt5sk.example.com. IN NSEC3 120 1 1 1 abcd VTP9NUQBEH436S7J0K8TI2A32MMKCUUL NS SOA MX RRSIG DNSKEY NSEC3PARAM
+Rcode: 0, RD: 0, QR: 1, TC: 1, AA: 1, opcode: 0
+Reply to question for qname='example.com.', qtype=ANY
--- /dev/null
+#!/bin/sh
+cleandig outerpost.example.com A dnssec | egrep 'IN[[:space:]]+NSEC'
+
--- /dev/null
+This test verifies that an NXDOMAIN in the middle of a zone
+generates a correct NSEC(3).
--- /dev/null
+1 ns2.example.com. IN NSEC 120 outpost.example.com. A RRSIG NSEC
--- /dev/null
+1 9f8hti7cc7oqnqjv84klnp89glqrss3r.example.com. IN NSEC3 120 1 1 1 abcd 9FDAOFPLLN0FQFU9DP274GOU59QFHSLD A RRSIG
+1 sthkgrndv06hbdrfe7a329lup4mctmqr.example.com. IN NSEC3 120 1 1 1 abcd STKPKJBN0URUBBIM832MF33V5OGJR396 A RRSIG
+1 vtnq6ocn2vkuiv3nju14oqtaen2mt5sk.example.com. IN NSEC3 120 1 1 1 abcd VTP9NUQBEH436S7J0K8TI2A32MMKCUUL NS SOA MX RRSIG DNSKEY NSEC3PARAM
--- /dev/null
+1 9f8hti7cc7oqnqjv84klnp89glqrss3r.example.com. IN NSEC3 120 1 1 1 abcd 9FDAOFPLLN0FQFU9DP274GOU59QFHSLD A RRSIG
+1 gnk5kv3h2h1h8ge405j6093608ukp3i5.example.com. IN NSEC3 120 1 1 1 abcd GNO4LESKG6U7HKEJ9UL71SF1HD7F1P96 A RRSIG
+1 vtnq6ocn2vkuiv3nju14oqtaen2mt5sk.example.com. IN NSEC3 120 1 1 1 abcd VTP9NUQBEH436S7J0K8TI2A32MMKCUUL NS SOA MX RRSIG DNSKEY NSEC3PARAM
--- /dev/null
+1 9f8hti7cc7oqnqjv84klnp89glqrss3r.example.com. IN NSEC3 120 1 1 1 abcd 9FDAOFPLLN0FQFU9DP274GOU59QFHSLD A RRSIG
+1 vtnq6ocn2vkuiv3nju14oqtaen2mt5sk.example.com. IN NSEC3 120 1 1 1 abcd VTP9NUQBEH436S7J0K8TI2A32MMKCUUL NS SOA MX RRSIG DNSKEY NSEC3PARAM
--- /dev/null
+1 5uvgfm2vjcje09svs7lfb22i1uuqjf98.example.com. IN NSEC3 120 1 1 1 abcd 5V0S7HPRC5IAFH3C3RO0HHNH543D3UIU A RRSIG
+1 9f8hti7cc7oqnqjv84klnp89glqrss3r.example.com. IN NSEC3 120 1 1 1 abcd 9FDAOFPLLN0FQFU9DP274GOU59QFHSLD A RRSIG
+1 vtnq6ocn2vkuiv3nju14oqtaen2mt5sk.example.com. IN NSEC3 120 1 1 1 abcd VTP9NUQBEH436S7J0K8TI2A32MMKCUUL NS SOA MX RRSIG DNSKEY NSEC3PARAM
[ -z "$port" ] && port=5300
context=$2
[ -z "$context" ] && context=bind-gsqlite3
+wait=$3
case $context in
bind)
--gmysql-password="$GMYSQLPASS" &
if [ $context = gmysql-nsec3 ]
then
- subcontexts=nsec3
+ extracontexts=nsec3
fi
;;
*)
## TODO: give pdns a few seconds to startup or fail, then check if it did not fail
## TODO: give sdig a timeout
nameserver=127.0.0.1 ./runtests
+if [ "$wait" = "wait" ]
+then
+ echo tests done! push enter to terminate instance
+ read l
+fi
kill $(cat pdns.pid)
./toxml