Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 34d939038c7d78b4923addc7e8f9eb3138ae08de
parent a883492816e67e7781a7ee37bd495e111301dc62
Author: dankert <devnull@localhost>
Date:   Mon, 14 Aug 2017 21:58:19 +0200

IPv6 records

update_dns | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/update_dns b/update_dns @@ -78,6 +78,7 @@ sql "SELECT domain FROM domain WHERE domain REGEXP('^[a-z0-9-]+\..[a-z]+\$') and IN NS IN NS IN A + IN AAAA 2a01:238:43b1:5800:8b3:855e:7f32:cb19 IN TXT "v=spf1 a mx -all" ZEOF @@ -93,7 +94,9 @@ ZEOF # Subdomain-Liste sql "SELECT replace(domain,'.$domain','') as subdomain FROM domain WHERE domain like '%.$domain' order by subdomain"|while read subdomain; do echo -n $subdomain|sed -e :a -e 's/^.\{1,20\}$/& /;ta' >> $ZONEFILE # 24-stellig aufgefuellt mit Leerzeichen - echo "IN A" >> $ZONEFILE + echo "IN A" >> $ZONEFILE + echo -n $subdomain|sed -e :a -e 's/^.\{1,20\}$/& /;ta' >> $ZONEFILE # 24-stellig aufgefuellt mit Leerzeichen + echo "IN AAAA 2a01:238:43b1:5800:8b3:855e:7f32:cb19" >> $ZONEFILE # Hat die Subdomain Mailboxen oder Aliases? Falls ja, dann MX-Eintrag ergänzen count_mailboxes=`sql "select sum(c) FROM