diff options
Diffstat (limited to 'roles/install_bind')
-rw-r--r-- | roles/install_bind/templates/named.conf.j2 | 45 |
1 files changed, 18 insertions, 27 deletions
diff --git a/roles/install_bind/templates/named.conf.j2 b/roles/install_bind/templates/named.conf.j2 index ac2f9bd..9966332 100644 --- a/roles/install_bind/templates/named.conf.j2 +++ b/roles/install_bind/templates/named.conf.j2 @@ -10,18 +10,22 @@ options { auth-nxdomain no; # conform to RFC1035 - listen-on-v6 { {{ bat0_ipv6 }}; }; - listen-on port 53 { 127.0.0.1; {{ bat0_ipv4 }}; }; - - allow-recursion { 127.0.0.1; 10.222.0.0/16; 2a01:198:70a:ff::/64; }; + listen-on-v6 { +{% for site in sites %} + {{ site.bat_ipv6 }}; +{% endfor %} + }; + listen-on port 53 { + 127.0.0.1; +{% for site in sites %} + {{ site.bat_ipv4 }}; +{% endfor %} + }; + + allow-recursion { 127.0.0.1; 10.222.0.0/16; 2001:470:cd45:ff00::/56; }; allow-transfer { none; }; allow-update { none; }; - //forwarders { - // 85.214.20.141; - // 213.73.91.35; - //}; - version none; hostname none; server-id none; @@ -57,22 +61,9 @@ zone "." IN { file "root.hint"; }; -zone "ffmyk" IN { - type slave; - file "bak/ffmyk.zone"; - allow-query { any; }; - masters { 10.222.100.1; }; -}; - -//logging { -// channel xfer-log { -// file "/var/log/named.log"; -// print-category yes; -// print-severity yes; -// severity info; -// }; -// category xfer-in { xfer-log; }; -// category xfer-out { xfer-log; }; -// category notify { xfer-log; }; +//zone "ffmyk" IN { +// type slave; +// file "bak/ffmyk.zone"; +// allow-query { any; }; +// masters { 10.222.100.1; }; //}; - |