Skip to content

Commit

Permalink
small lib fix
Browse files Browse the repository at this point in the history
  • Loading branch information
semihalev committed Oct 14, 2018
1 parent 41ea9b7 commit 30c0c4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ func (r *Resolver) Resolve(Net string, req *dns.Msg, servers []string, root bool
nsecSet := extractRRSet(resp.Ns, "", dns.TypeNSEC3)
if len(nsecSet) > 0 {
err = verifyNameError(&resp.Question[0], nsecSet)
if err != nil {
log.Info("NSEC3 verify failed (NXDOMAIN)", "qname", req.Question[0].Name, "qtype", dns.TypeToString[req.Question[0].Qtype], "error", err.Error())
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion vendor/github.com/miekg/dns/nsecx.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 30c0c4d

Please sign in to comment.