From: Peter Palfrader Date: Sat, 5 Mar 2011 12:26:55 +0000 (+0100) Subject: I wonder if this is better X-Git-Url: https://git.donarmstrong.com/?p=dsa-puppet.git;a=commitdiff_plain;h=259ecf970241269d8237cdc9f73f323f8fcf78fa I wonder if this is better --- diff --git a/modules/resolv/templates/resolv.conf.erb b/modules/resolv/templates/resolv.conf.erb index ad7ac723..0ebef6c5 100644 --- a/modules/resolv/templates/resolv.conf.erb +++ b/modules/resolv/templates/resolv.conf.erb @@ -21,6 +21,7 @@ searchpaths << "debian.org" resolvconf = '' resolvconf += "search " + searchpaths.join(" ") + "\n" +unbound = lookupvar('unbound') if unbound and unbound == "true" resolvconf += "nameserver 127.0.0.1\n" else