|The DirectAdmin interface currently only allows for 2 nameservers to be entered. You can add a 3rd namesevrer to all old and new domains, but requires some simple file editing.|
We'll assume that the 3rd nameserver is called ns3.host.com and that the user domains are called domain.com
1) First, setup the default ns template so that any newly created domains have the 3rd nameserver.
ns3.host.com.=|DOMAIN|.Make sure you add the periods to the end of each value, they're very important. This will now add a 3rd namesever for all domains created after this point.
2) Next, to change the existing domains, we need to edit the named.db template temporarily. Type
cd /usr/local/directadmin/data/templates(without the /custom). Edit the named.db file. At the very bottom of the file, add:
|DOMAIN|. 14400 IN NS ns3.host.com.Again paying special attention to the periods at the end of the values. Now, any rewrite done by DirectAdmin will add that line, so let's now issue a full dns rewrite
echo "action=rewrite&value=named" >> /usr/local/directadmin/data/task.queue
If you want the ns3 value to vary per Reseller, you can use if-then-else type statements in the dns_ns.conf, since all templates support scripting, eg:
© 2003 JBMC Software, Suite 173 3-11 Bellerose Drive, St Albert, AB T8N 1P7 Canada. Mon-Fri 9AM-5PM MST