|
|
|
@ -370,7 +370,7 @@ func (s *DoHNameServer) QueryIP(ctx context.Context, domain string, option dns_f
|
|
|
|
|
ips, err := s.findIPsForDomain(fqdn, option)
|
|
|
|
|
if err != errRecordNotFound {
|
|
|
|
|
newError(s.name, " cache HIT ", domain, " -> ", ips).Base(err).AtDebug().WriteToLog()
|
|
|
|
|
log.Record(&log.DNSLog{s.name, domain, ips, log.DNSCacheHit, 0, err})
|
|
|
|
|
log.Record(&log.DNSLog{Server: s.name, Domain: domain, Result: ips, Status: log.DNSCacheHit, Elapsed: 0, Error: err})
|
|
|
|
|
return ips, err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -406,7 +406,7 @@ func (s *DoHNameServer) QueryIP(ctx context.Context, domain string, option dns_f
|
|
|
|
|
for {
|
|
|
|
|
ips, err := s.findIPsForDomain(fqdn, option)
|
|
|
|
|
if err != errRecordNotFound {
|
|
|
|
|
log.Record(&log.DNSLog{s.name, domain, ips, log.DNSQueried, time.Since(start), err})
|
|
|
|
|
log.Record(&log.DNSLog{Server: s.name, Domain: domain, Result: ips, Status: log.DNSQueried, Elapsed: time.Since(start), Error: err})
|
|
|
|
|
return ips, err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|