Fixed SRV subdomains

This commit is contained in:
Marc 2014-10-20 10:57:16 +00:00
parent 781a873f61
commit 04b9ee51cb
1 changed files with 2 additions and 1 deletions

View File

@ -91,7 +91,7 @@ class Bind9MasterDomainBackend(ServiceController):
'zone_path': settings.DOMAINS_ZONE_PATH % {'name': domain.name}, 'zone_path': settings.DOMAINS_ZONE_PATH % {'name': domain.name},
'subdomains': domain.subdomains.all(), 'subdomains': domain.subdomains.all(),
'banner': self.get_banner(), 'banner': self.get_banner(),
'slaves': '; '.join(self.get_slaves(domain)) or 'none', 'slaves': '; '.join(self.get_slaves(domain)) or '"none"',
} }
context.update({ context.update({
'conf_path': settings.DOMAINS_MASTERS_PATH, 'conf_path': settings.DOMAINS_MASTERS_PATH,
@ -101,6 +101,7 @@ class Bind9MasterDomainBackend(ServiceController):
type master; type master;
file "%(zone_path)s"; file "%(zone_path)s";
allow-transfer { %(slaves)s; }; allow-transfer { %(slaves)s; };
also-notify { %(slaves)s; };
};""" % context) };""" % context)
}) })
return context return context