From fabef7e08ffd17fc0ead09867b2a2e04f0057fbf Mon Sep 17 00:00:00 2001 From: bert hubert Date: Wed, 25 Oct 2017 12:46:41 +0200 Subject: [PATCH] also account for network latency when talking to hardcoded servers --- pdns/syncres.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 79253ecbc..ed75e659f 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -536,6 +536,10 @@ int SyncRes::doResolve(const DNSName &qname, const QType &qtype, vector nm; res=asyncresolveWrapper(remoteIP, d_doDNSSEC, qname, qtype.getCode(), false, false, &d_now, nm, &lwr); + + d_totUsec += lwr.d_usec; + accountAuthLatency(lwr.d_usec, remoteIP.sin4.sin_family); + // filter out the good stuff from lwr.result() if (res == 1) { for(const auto& rec : lwr.d_records) { -- 2.40.0