Permalink
Browse files

As noted by Fusl, the new DoS measures kill our daemon in case the ro…

…ot refresh query times out.
  • Loading branch information...
1 parent c595014 commit 6a6fb05ad81c519b4002ed1db00f3ed9b7bce6b4 @ahupowerdns ahupowerdns committed Jan 24, 2015
Showing with 8 additions and 1 deletion.
  1. +8 −1 pdns/pdns_recursor.cc
@@ -1314,7 +1314,14 @@ try
vector<DNSResourceRecord> ret;
sr.setNoCache();
- int res=sr.beginResolve(".", QType(QType::NS), 1, ret);
+ int res=-1;
+ try {
+ res=sr.beginResolve(".", QType(QType::NS), 1, ret);
+ }
+ catch(...)
+ {
+ L<<Logger::Error<<"Failed to update . records, got an exception"<<endl;
+ }
if(!res) {
L<<Logger::Notice<<"Refreshed . records"<<endl;
last_rootupdate=now.tv_sec;

0 comments on commit 6a6fb05

Please sign in to comment.