diff --git a/Bundler/bind.xml b/Bundler/bind.xml index 4b7f50c..fec6934 100644 --- a/Bundler/bind.xml +++ b/Bundler/bind.xml @@ -13,6 +13,9 @@ + + + diff --git a/Python/etc/bind/named.conf.local b/Python/etc/bind/named.conf.local index b7171fa..8166c85 100644 --- a/Python/etc/bind/named.conf.local +++ b/Python/etc/bind/named.conf.local @@ -46,9 +46,9 @@ if has("vlan-accueil"): @ type master; @ file "/etc/bind/db.fake"; @ }; - @}; @ @ recursion no; + @}; @view "others" { @ match-clients { any; }; @@ -91,9 +91,9 @@ elif has("dns-tv"): elif has("dns-recursif"): @zone "239.in-addr.arpa" { - @ type forward; - @ forward only; - print " forwarders { %s; };" % '; '.join([config.dns.master_tv, config.dns.master] + config.dns.slaves) + @ type slave; + @ file "/etc/bind/generated/db.239.in-addr.arpa"; + print" masters { %s; };" % config.dns.master_tv @}; reverse_crans() diff --git a/Python/etc/bind/named.conf.notify b/Python/etc/bind/named.conf.notify index 4d7b79c..a31ae74 100644 --- a/Python/etc/bind/named.conf.notify +++ b/Python/etc/bind/named.conf.notify @@ -17,6 +17,6 @@ def notify(ips): if has("dns-tv"): - notify(config.dns.slaves_tv) + notify(config.dns.slaves_tv + config.dns.recursiv) if has("dns-primary"): - notify(config.dns.slaves + [config.dns.parent]) \ No newline at end of file + notify(config.dns.slaves + [config.dns.parent]) diff --git a/Python/etc/bind/named.conf.options b/Python/etc/bind/named.conf.options index 15bcdbd..f61088e 100644 --- a/Python/etc/bind/named.conf.options +++ b/Python/etc/bind/named.conf.options @@ -53,7 +53,7 @@ if has("dns-primary") or has("dns-tv"): if has("dns-primary"): print " %s;" % ';\n '.join(config.dns.slaves + [config.dns.parent]) if has("dns-tv"): - print " %s;" % ';\n '.join(config.dns.slaves_tv) + print " %s;" % ';\n '.join(config.dns.slaves_tv + config.dns.recursiv) @ }; @ allow-query { any; }; @ auth-nxdomain no; # conform to RFC1035