X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fresolv%2Ftemplates%2Fresolv.conf.erb;h=f554d9412ffd129312bddf0cb3140578dc11b8fc;hb=a3dc39e898c946c2390908ef90ed35bfcda1a76f;hp=9bc11ba9664e90a63b189e5d328aad840e14ce15;hpb=a46da6bd7b246ce960c5bd1d484597b79c05521a;p=mirror%2Fdsa-puppet.git diff --git a/modules/resolv/templates/resolv.conf.erb b/modules/resolv/templates/resolv.conf.erb index 9bc11ba96..f554d9412 100644 --- a/modules/resolv/templates/resolv.conf.erb +++ b/modules/resolv/templates/resolv.conf.erb @@ -21,7 +21,7 @@ searchpaths << "debian.org" resolvconf = '' resolvconf += "search " + searchpaths.join(" ") + "\n" -if runs_local_resolver +if defined?(unbound) and unbound and unbound == "true" resolvconf += "nameserver 127.0.0.1\n" else if nameservers.empty?