custom script for saving a dns zone

Version 1.232

Feature
Finished

/usr/local/directadmin/scripts/custom/dns_write_post.sh environmental variables: A : list of a records CNAME : list of cname records MX : list of mx records NS : list of ns records PTR : list of ptr records SERIAL : the serial used in the zone EMAIL : authoritative email NS1 : authoritative ns zone. DOMAIN : domain name of the zone SERVER_IP : server IP A_TIME : ttl for A records CNAME_TIE : ttl for CNAME records NS_TIME : ttl for NS records PTR_TIME : ttl for PTR records A, CNAME, MX, NS and PTR will be url encoded arrays: eg: A: A="ftp=192.168.0.2&localhost=127.0.0.1&mail=192.168.0.2&domain.com.=192.168.0.2&webmail=192.168.0.2&www=192.168.0.2" a non zero return value from the script will output and text from stdout to the interface.

Interested to try DirectAdmin? Get a 30-day Free Trial!