PACKAGE token added to all dns_*.conf templates

Version 1.42


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"| |*else| mail=10 |*endif| where "remotemail" is the name of the User package set that is to use: as the mail server. Related, if the final destination is *not* on this box:

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