Add logging when a name doesn't resolve
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
938aff52f7
commit
01b6006a15
6
main.go
6
main.go
@ -176,6 +176,12 @@ func (e *Exporter) resolve(zone, record, recordType, resolver string) (resolves
|
|||||||
!response.CheckingDisabled &&
|
!response.CheckingDisabled &&
|
||||||
response.Rcode == dns.RcodeSuccess
|
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.
|
// If multiple RRSIGs cover our record, return the one that will expire the earliest.
|
||||||
for _, rr := range response.Answer {
|
for _, rr := range response.Answer {
|
||||||
if rrsig, ok := rr.(*dns.RRSIG); ok {
|
if rrsig, ok := rr.(*dns.RRSIG); ok {
|
||||||
|
Loading…
Reference in New Issue
Block a user