From 7836f7b46a7fc7c89773fd006a88b82cf48ead4c Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Thu, 10 Nov 2016 13:56:58 +0100 Subject: [PATCH] On (re-)priming, fetch the root NS records --- pdns/pdns_recursor.cc | 71 +++++++++++++++++++++++++------------------ pdns/reczones.cc | 2 +- pdns/syncres.cc | 2 ++ pdns/syncres.hh | 1 + 4 files changed, 46 insertions(+), 30 deletions(-) diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 4435bab3f9..9ce09f8fe9 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -1950,35 +1950,9 @@ static void houseKeeping(void *) } if(now.tv_sec - last_rootupdate > 7200) { - SyncRes sr(now); - sr.setDoEDNS0(true); - vector ret; - - sr.setNoCache(); - int res=-1; - try { - res=sr.beginResolve(g_rootdnsname, QType(QType::NS), 1, ret); - } - catch(PDNSException& e) - { - L<