franck,liszt,master,samosa,spohr,widor: { include named::recursor }
}
case $hostname {
- ries: { include unbound }
+ ries: {
+ include unbound
+ $runs_local_resolver = true
+ }
+ default: {
+ $runs_local_resolver = false
+ }
}
case getfromhash($hosterinfo, 'nameservers') {
false: {}
resolvconf = ''
resolvconf += "search " + searchpaths.join(" ") + "\n"
-nameservers.each do |ns|
- resolvconf += "nameserver " + ns + "\n"
+
+if runs_local_resolver
+ resolvconf += "nameserver 127.0.0.1\n"
+else
+ nameservers.each do |ns|
+ resolvconf += "nameserver " + ns + "\n"
+ end
end
+
options.each do |opt|
resolvconf += "options " + opt + "\n"
end