From 330e9cfb746d052377e1a8d066fba20dbb5c6241 Mon Sep 17 00:00:00 2001 From: Lexi Winter Date: Wed, 10 Sep 2025 19:09:14 +0100 Subject: updates --- unbound.conf.erb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'unbound.conf.erb') diff --git a/unbound.conf.erb b/unbound.conf.erb index 5edf4ad..27b2767 100644 --- a/unbound.conf.erb +++ b/unbound.conf.erb @@ -149,4 +149,16 @@ auth-zone: <% end -%> +<% else -%> +# This server doesn't have a copy of our local zones, so define them as +# stub zones instead. This is required for private zones (e.g. RFC1918) +# to resolve correctly. +<% local_zones.split.each do |zone| -%> +stub-zone: + name: <%= zone %> +<% ns_addrs.split.each do |ns| -%> + stub-addr: <%= ns %> +<% end -%> + +<% end -%> <% end %> -- cgit v1.2.3