From: bert hubert Date: Wed, 25 Oct 2017 10:46:41 +0000 (+0200) Subject: also account for network latency when talking to hardcoded servers X-Git-Tag: rec-4.1.0-rc2~24^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fabef7e08ffd17fc0ead09867b2a2e04f0057fbf;p=pdns also account for network latency when talking to hardcoded servers --- 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) {