@@ -489,6 +489,16 @@ static const rdata_t nsec_rdata =
489
489
0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 ,
490
490
0x00 , 0x00 , 0x00 , 0x00 , 0x20 );
491
491
492
+ static const char nsec_text_2 [] =
493
+ PAD ("alfa.example.com. 86400 IN NSEC host.example.com. ns soa rrsig dnskey nsec3param" );
494
+
495
+ static const rdata_t nsec_rdata_2 =
496
+ RDATA (0x04 , 'h' , 'o' , 's' , 't' ,
497
+ 0x07 , 'e' , 'x' , 'a' , 'm' , 'p' , 'l' , 'e' ,
498
+ 0x03 , 'c' , 'o' , 'm' , 0x00 ,
499
+ 0x00 , 0x07 , 0x22 , 0x00 , 0x00 , 0x00 , 0x00 , 0x02 ,
500
+ 0x90 );
501
+
492
502
// https://datatracker.ietf.org/doc/html/rfc5155#appendix-B.2.1
493
503
static const char nsec3_no_data_text [] =
494
504
PAD ("ji6neoaepv8b5o6k4ev33abha8ht9fgc.example. NSEC3 1 1 12 aabbccdd (\n"
@@ -948,6 +958,7 @@ static const test_t tests[] = {
948
958
{ ZONE_TYPE_IPSECKEY , ipseckey_ipv6_text , & ipseckey_ipv6_rdata },
949
959
{ ZONE_TYPE_IPSECKEY , ipseckey_name_text , & ipseckey_name_rdata },
950
960
{ ZONE_TYPE_NSEC , nsec_text , & nsec_rdata },
961
+ { ZONE_TYPE_NSEC , nsec_text_2 , & nsec_rdata_2 },
951
962
{ ZONE_TYPE_NSEC3 , nsec3_no_data_text , & nsec3_no_data_rdata },
952
963
{ ZONE_TYPE_DHCID , dhcid_text , & dhcid_rdata },
953
964
{ ZONE_TYPE_DHCID , dhcid_generic_text , & dhcid_rdata },
0 commit comments