}
// add matching NSEC3 RR
- if (mode != 3) {
+ if (mode != 3 && mode != 5) {
unhashed=(mode == 0 || mode == 5) ? target : closest;
hashed=hashQNameWithSalt(ns3rc.d_iterations, ns3rc.d_salt, unhashed);
0 example.com. IN NS 120 ns2.example.com.
0 example.com. IN NSEC3PARAM 86400 1 0 1 abcd
0 example.com. IN SOA 100000 ns1.example.com. ahu.example.com. 2000081501 28800 7200 604800 86400
-0 vtnq6ocn2vkuiv3nju14oqtaen2mt5sk.example.com. IN NSEC3 86400 1 1 1 abcd VTNQ6OCN2VKUIV3NJU14OQTAEN2MT5SL NS SOA MX RRSIG DNSKEY NSEC3PARAM
2 . IN OPT 0
2 ns1.example.com. IN A 120 192.168.1.1
2 ns2.example.com. IN A 120 192.168.1.2
0 example.com. IN NS 120 ns2.example.com.
0 example.com. IN NSEC3PARAM 86400 1 0 1 abcd
0 example.com. IN SOA 100000 ns1.example.com. ahu.example.com. 2000081501 28800 7200 604800 86400
-0 vtnq6ocn2vkuiv3nju14oqtaen2mt5sk.example.com. IN NSEC3 86400 1 1 1 abcd VTP9NUQBEH436S7J0K8TI2A32MMKCUUL NS SOA MX RRSIG DNSKEY NSEC3PARAM
2 . IN OPT 0
2 ns1.example.com. IN A 120 192.168.1.1
2 ns2.example.com. IN A 120 192.168.1.2