@@ -32,6 +32,28 @@ static const ResolverConfig SIGNED_RESOLVER_CONFIG{
3232 .dnssec = FeatureState::Require,
3333};
3434
35+ #define NSEC3_SIGNED_DOMAIN " nsec3-signed.com."
36+ static const ResolverConfig NSEC3_SIGNED_RESOLVER_CONFIG {
37+ .timeout_ms = 500 ,
38+ .nameserver = NameserverConfig{
39+ .address = " 127.0.0.1" ,
40+ .zone_domain = NSEC3_SIGNED_DOMAIN,
41+ .dss = {DS{
42+ .key_tag = 32475 ,
43+ .signing_algorithm = SigningAlgorithm::ECDSAP256SHA256,
44+ .digest_algorithm = DigestAlgorithm::SHA256,
45+ .digest = {0xA5 , 0x29 , 0xE5 , 0x47 , 0x63 , 0xB5 , 0x68 , 0x6C , 0x25 , 0x95 , 0x16 ,
46+ 0xB6 , 0x0D , 0xEA , 0x46 , 0xCB , 0x42 , 0xC0 , 0x14 , 0x15 , 0xDA , 0x5C ,
47+ 0xC6 , 0xCB , 0xD1 , 0x8B , 0x9C , 0x54 , 0x1A , 0x99 , 0x8C , 0x5D },
48+ .data = {},
49+ }},
50+ },
51+ .use_root_nameservers = false ,
52+ .use_resolve_config = false ,
53+ .port = 1053 ,
54+ .dnssec = FeatureState::Require,
55+ };
56+
3557#define MOCK_DOMAIN " test.com."
3658#define MOCK_NAMESERVER_ADDRESS " 127.0.0.2"
3759static const ResolverConfig MOCK_RESOLVER_CONFIG{
0 commit comments