Compare commits
No commits in common. "01b6006a15b7d16a1214781eb6f1a21edcaf8892" and "0ac0bdb1abd58da5b4af59cbd97f014c50580090" have entirely different histories.
01b6006a15
...
0ac0bdb1ab
8
main.go
8
main.go
@ -89,7 +89,7 @@ func NewDNSSECExporter(timeout time.Duration, resolvers []string, logger Logger)
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
dnsClient: &dns.Client{
|
dnsClient: &dns.Client{
|
||||||
// Net: "tcp",
|
Net: "tcp",
|
||||||
Timeout: timeout,
|
Timeout: timeout,
|
||||||
},
|
},
|
||||||
resolvers: resolvers,
|
resolvers: resolvers,
|
||||||
@ -176,12 +176,6 @@ 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…
x
Reference in New Issue
Block a user