crans_bcfg2/Python/etc/bind/named.conf.notify
2015-05-14 07:19:56 +02:00

25 lines
541 B
Python

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