Add logging when a name doesn't resolve
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Ask Bjørn Hansen 2022-11-22 16:12:17 -08:00
parent 938aff52f7
commit 01b6006a15

View File

@ -176,6 +176,12 @@ func (e *Exporter) resolve(zone, record, recordType, resolver string) (resolves
!response.CheckingDisabled &&
response.Rcode == dns.RcodeSuccess
if !resolves {
log.Printf("%s AuthenticatedData: %t", hostname(zone, record), response.AuthenticatedData)
log.Printf("%s CheckingDisabled: %t", hostname(zone, record), response.AuthenticatedData)
log.Printf("%s RcodeSuccess : %s", hostname(zone, record), dns.RcodeToString[response.Rcode])
}
// If multiple RRSIGs cover our record, return the one that will expire the earliest.
for _, rr := range response.Answer {
if rrsig, ok := rr.(*dns.RRSIG); ok {