PACKAGE token added to all dns_*.conf templates

Version 1.42

Feature
Finished

As the need for flexibility in the default dns settings grows, I've added a new token: PACKAGE will will be available in all dns_*.conf templates, as well as the named.db template. The PACKAGE value will not be present if the zone does not have an associated User on this box... However, for any domains that are created on this box under a DA User, the token should be there. For example, you may want to set your MX records differently, based on package. To do this, type: cd /usr/local/directadmin/data/templates/custom cp ../dns_mx.conf . Edit the custom/dns_mx.conf file, and set this in the file: |*if PACKAGE="remotemail"| mail.remoteserver.com.=10 |*else| mail=10 |*endif| where "remotemail" is the name of the User package set that is to use: mail.remoteserver.com. as the mail server. Related, if the final destination is *not* on this box: http://help.directadmin.com/item.php?id=8

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