]> granicus.if.org Git - pdns/commitdiff
if no nameserver configured in /etc/resolv.conf, send to 127.0.0.1. Closes #1851.
authorbert hubert <bert.hubert@netherlabs.nl>
Fri, 31 Oct 2014 12:23:22 +0000 (13:23 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Fri, 31 Oct 2014 12:23:22 +0000 (13:23 +0100)
pdns/secpoll-auth.cc

index e993690ee1ad53d54fba42c8cc37e2a300cf243c..f762218e4df1f840d2700a03e0d61df9900ad35f 100644 (file)
@@ -52,6 +52,9 @@ static vector<ComboAddress> parseResolveConf()
     }
 
   }
+  if(ret.empty()) {
+    ret.push_back(ComboAddress("127.0.0.1", 53));
+  }
 
   return ret;
 }