From: bert hubert Date: Fri, 31 Oct 2014 12:23:22 +0000 (+0100) Subject: if no nameserver configured in /etc/resolv.conf, send to 127.0.0.1. Closes #1851. X-Git-Tag: auth-3.3.2~2^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a4597e9c0cb4a5a4f927a2a9f5328c5c23afe93;p=thirdparty%2Fpdns.git if no nameserver configured in /etc/resolv.conf, send to 127.0.0.1. Closes #1851. --- diff --git a/pdns/secpoll-auth.cc b/pdns/secpoll-auth.cc index e993690ee1..f762218e4d 100644 --- a/pdns/secpoll-auth.cc +++ b/pdns/secpoll-auth.cc @@ -52,6 +52,9 @@ static vector parseResolveConf() } } + if(ret.empty()) { + ret.push_back(ComboAddress("127.0.0.1", 53)); + } return ret; }