diff options
| author | Lexi Winter <lexi@le-fay.org> | 2025-09-10 19:09:14 +0100 |
|---|---|---|
| committer | Lexi Winter <lexi@le-fay.org> | 2025-09-10 19:09:14 +0100 |
| commit | 330e9cfb746d052377e1a8d066fba20dbb5c6241 (patch) | |
| tree | 1bdeef705e31aa79dd4857353e2b5c3da6d66038 /unbound.conf.erb | |
| parent | 361784abbb3c871b69926faf71aebde61e73fb2a (diff) | |
| download | dns-330e9cfb746d052377e1a8d066fba20dbb5c6241.tar.gz dns-330e9cfb746d052377e1a8d066fba20dbb5c6241.tar.bz2 | |
updates
Diffstat (limited to 'unbound.conf.erb')
| -rw-r--r-- | unbound.conf.erb | 12 |
1 files changed, 12 insertions, 0 deletions
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 %> |
