crans_bcfg2/Python/etc/bind/named.conf.notify
2013-03-26 16:26:56 +01:00

22 lines
408 B
Python

# -*- mode: python; encoding: utf-8 -*-
info["owner"] = "root"
info["group"] = "bind"
info["perms"] = 0644
comment_start = "//"
header("Options de Bind9")
import config.dns
def notify(ips):
print " also-notify { \n %s;\n };" % ';\n '.join(ips)
if has("dns-primary"):
notify(config.dns.slaves + config.dns.parents)
elif has("dns-tv"):
notify(config.dns.slaves_tv + config.dns.recursiv)