From 491e8a2da0b975baf94040f818ee6f330be3ff4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Sun, 16 Sep 2018 16:17:55 +0200 Subject: [PATCH] main.py: exiger une zone pour les srv c'est bien. La faire finir par un . c'est mieux MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sinon, c'est une sous-zone et on ne peut alors pas déclarer _xmpp-client._tcp correctement. Soit on déclare _xmpp-client._tcp sans zone et alors c'est .crans.org. implicitement soit on exige l'extension (le cas ici) et alors on déclare _xmpp-client._tcp.crans.org. avec le "." à la fin! --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 81506e4..6c7e12b 100755 --- a/main.py +++ b/main.py @@ -35,7 +35,7 @@ template_originv6 = "@ IN AAAA {ipv6}" template_ns = "@ IN NS {target}." template_mx = "@ IN MX {priority} {target}." template_txt = "{field1} IN TXT {field2}" -template_srv = "_{service}._{protocole}.{zone} {ttl} IN SRV {priority} {weight} {port} {target}" +template_srv = "_{service}._{protocole}.{zone}. {ttl} IN SRV {priority} {weight} {port} {target}" template_a = "{hostname} IN A {ipv4}" template_aaaa = "{hostname} IN AAAA {ipv6}" template_cname = "{hostname} IN CNAME {alias}."