aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/dns
diff options
context:
space:
mode:
Diffstat (limited to 'deployment/dns')
-rw-r--r--deployment/dns/templates/mageia.org.zone6
1 files changed, 5 insertions, 1 deletions
diff --git a/deployment/dns/templates/mageia.org.zone b/deployment/dns/templates/mageia.org.zone
index 5d8b5936..ff8e31b6 100644
--- a/deployment/dns/templates/mageia.org.zone
+++ b/deployment/dns/templates/mageia.org.zone
@@ -7,7 +7,7 @@
; $Id$
$TTL 30m
@ IN SOA ns0.mageia.org. root.mageia.org. (
- 2024021901 ; Serial
+ 2024040801 ; Serial
7200 ; Refresh
3600 ; Retry
86400 ; Expire
@@ -37,12 +37,16 @@ group IN MX 20 neru.mageia.org.
<%-
nodes_txt = ''
nodes.keys.sort.each{|nodename|
+ spf = ''
if nodes[nodename].has_key?('ipv4')
nodes_txt += nodename + ' IN A ' + nodes[nodename]['ipv4'] + "\n"
+ spf += ' ip4:' + nodes[nodename]['ipv4']
end
if nodes[nodename].has_key?('ipv6')
nodes_txt += nodename + ' IN AAAA ' + nodes[nodename]['ipv6'] + "\n"
+ spf += ' ip6:' + nodes[nodename]['ipv6']
end
+ nodes_txt += nodename + ' IN TXT "v=spf1 ' + spf + ' mx:mageia.org ~all" ' + "\n"
}
-%>
<%= nodes_txt %>