SPF: Add server IPv6 by default (TEMPLATES)(SCRIPTS)

Version 1.62.0


New internal default setting: dns_add_spf_ipv6=1 Requires ipv6=1 enabled. To confirm, look for ipv6=1 output: /usr/local/directadmin/directadmin c | grep ^ipv6= ipv6=1 To disable, run: /usr/local/directadmin/directadmin set dns_add_spf_ipv6 0 service directadmin restart When a new domain/zone is added or a zone is reset, the TXT/SPF records for v=spf1 will now include: ip6:the:ipv6:of:the:server ================== TEMPLATES changes to 2 template files: dns_txt.conf dns_spf.conf |DOMAIN|.="v=spf1 a mx ip4:|SERVER_IP||EXTRA_SPF||SPF_IPV6| ~all" Where 2 new tokens are added (blank or set): SERVER_IPV6=the:ipv6:of:the:server SPF_IPV6= ip6:the:ipv6:of:the:server #note the space at the start of the token value for spacing in the v=spf1 value. ================== SCRIPTS New script at: /usr/local/directadmin/scripts/get_main_ip6.sh which currently makes a remote wget call, forced to use IPv6 with --inet6-only to obtain the IPv6 based on the returned value. This may change, but appears to be reliable. The returned value, if valid and correct, is cached in the DA child process for up to 1 hour (prevents hammering wget). Note the parent call does not cache it, just the child, but is mainly useful for dataskq calls when it's used many times in one process. ================== BACKUP/RESTORE The serveripv6 will be logged in the backup/user.conf during backup. Upon restore, if the new box has the feature enabled, the old value is swapped with the new server's value in TXT/SPF records. ---- T31486

Try DirectAdmin with a 30-day money back guarantee!