DNS Template

Hosting Hotel

Verified User
Joined
Jul 28, 2005
Messages
7
Hello,

Is it possible to edit the DNS template that DirectAdmin uses when it creates a new domain.

I would like this because i want to add a Fallback MX server to each domain.

Thanks :)
 
1 word of caution:
Never EVER add it to your main named.db template, it will work, however, on each rewrite, it will create another entry...
(just for the search & future reference)

If you have done that, and want to get rid of the custom entry's pm me, I've got a script to do it :)
 
No i didn't edit named.db i just changed dns_a.conf
dns_mx.conf
dns_cname.conf
dns_ns.conf

and added some records to it.
 
sorry to resurrect an old thread, but along the same lines does anyone know how to enforce these changes into existing zone files?

I have made modifications to the dns_a and dns_mx conf files (in the custom dir) but they will only get applied to newly created domains, but I need it applying to all the current domains as well.

echo "action=rewrite&value=named" >> /usr/local/directadmin/data/task.queue

doesnt seem to do it all, do I need to set a different action?

Also looking at the README in the data/templates directory
The following templates can be used in the custom dir:

named.db
outlook_setup.reg
virtual_host.conf
virtual_host_secure.conf
virtual_host_secure_sub.conf
virtual_host_sub.conf
so will this actually work at all as I am not wanting to use any of those templates in the custom dir, or has the README just not been updated in a long while?
 
Back
Top