From 4a06d155d812b8c7b7f84364006660e9fc6d2712 Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Sat, 21 Dec 2013 03:33:24 +0100 Subject: [PATCH] [gen_confs/bind] Enregistrement NAPTR pour le sip --- gestion/gen_confs/bind.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gestion/gen_confs/bind.py b/gestion/gen_confs/bind.py index adbdd1d9..e405faf1 100755 --- a/gestion/gen_confs/bind.py +++ b/gestion/gen_confs/bind.py @@ -141,6 +141,12 @@ la base LDAP '_sip._tcp.crans.org. 86400 IN SRV 5 0 5060 asterisk.crans.org.', '_sips._tcp.crans.org. 86400 IN SRV 5 0 5061 asterisk.crans.org.', ] + + NATPRs = [ + '@ 86400 IN NAPTR 5 100 "S" "SIPS+D2T" "" _sips._tcp.crans.org.', + '@ 86400 IN NAPTR 10 100 "S" "SIP+D2U" "" _sip._udp.crans.org.', + '@ 86400 IN NAPTR 15 100 "S" "SIP+D2T" "" _sip._tcp.crans.org.', + ] # DS à publier dans zone parentes : { parent : [ zone. TTL IN DS key_id algo_id 1 hash ] } # ex : { 'crans.eu' : ['wifi.crans.eu. 86400 IN DS 33131 8 1 3B573B0E2712D8A8B1B0C3'] } @@ -499,6 +505,8 @@ zone "%(NOM_zone)s" { direct['crans.org'] +='; Champs SRV\n' for s in self.SRVs: direct['crans.org'] += s + '\n' + for s in self.NATPRs: + direct['crans.org'] += s + '\n' direct['crans.org'] += '\n' ### Ajout des délégations de zones