From 259ecf970241269d8237cdc9f73f323f8fcf78fa Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 5 Mar 2011 13:26:55 +0100 Subject: [PATCH] I wonder if this is better --- modules/resolv/templates/resolv.conf.erb | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.2