mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 11:04:38 +03:00
better check for dnssec-verifying resolver
check the authentic data bit for the NS records of "com.", not for ".": some dnssec-verifying resolvers return unauthentic data for ".". for issue #139 by triatic, thanks!
This commit is contained in:
@ -529,7 +529,8 @@ func checkDomain(ctx context.Context, resolver dns.Resolver, dialer *net.Dialer,
|
||||
defer logPanic(ctx)
|
||||
defer wg.Done()
|
||||
|
||||
_, result, err := resolver.LookupNS(ctx, ".")
|
||||
// Some DNSSEC-verifying resolvers return unauthentic data for ".", so we check "com".
|
||||
_, result, err := resolver.LookupNS(ctx, "com.")
|
||||
if err != nil {
|
||||
addf(&r.DNSSEC.Errors, "Looking up NS for DNS root (.) to check support in resolver for DNSSEC-verification: %s", err)
|
||||
} else if !result.Authentic {
|
||||
|
Reference in New Issue
Block a user