Custom DNS entries in template

pmehta

Verified User
Joined
Feb 24, 2008
Messages
14
is the following the right file to add default custom entries everytime a domain zone is added ?

/usr/local/directadmin/data/templates/named.db

basically, i would like to add 4 additional peer nameservers for every domain/zone that i add ?

I would like to avoid manually adding everytime..
 
No, your custom templates must be place here: /usr/local/directadmin/data/templates/custom

Because the template files which are located here: /usr/local/directadmin/data/templates/ will be overwritten by DirectAdmin with every new updated release.

Do this...

cp /usr/local/directadmin/data/templates/named.db /usr/local/directadmin/data/templates/custom/

Now edit /usr/local/directadmin/data/templates/custom/named.db and add in your extra DNS information in there...

Then run:

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