22 lines
408 B
Python
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)
|