Commit b1fa95af authored by Valentin Samir's avatar Valentin Samir
Browse files

[bind] On renseigne les NS pour les sous-zones dans la zone parente

Surtout utile si une sous zone n'est pas signée par dnssec
parent 218f3095
......@@ -494,6 +494,14 @@ zone "%(NOM_zone)s" {
for serv in self.DELEG[deleg]:
direct[zone] = direct[zone] + "%s\tIN\tNS\t%s\n" % ( nom, serv )
for zone in self.zones_direct:
child, parent = zone.split('.',1)
if not zone in self.DELEG.keys() and parent in self.zones_direct:
for d in self.DNSs:
direct[parent] = direct.get(parent, "") + '%s\tIN\tNS %s\n' % (child, d)
if zone in self.zones_v4_to_v6.keys():
for d in self.DNSs:
direct[parent] = direct.get(parent, "") + '%s.\tIN\tNS %s\n' % (self.zones_v4_to_v6[zone], d)
### Ajout d'eventuel champs DS pour les délégation dnssec
for zone,ds in self.DS.items():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment