Howto add 3 and 4 nameserver for DirectAdmin
I am using at my servers DirectAdmin control panel. So I have multiple servers and I want to share DNS information between servers, and also take to use all nameservers.
First I was one VPS in UK, where I set up ns1.rpthosting.com and ns2.rpthosting.com. Evrything works fine.
After that I rent a new VPS in US, and there I want set up ns3.rpthosting.com and ns4.rpthosting.com. So here are steps, how to get it work:
* At the second server – add the main domain as usual domain under User level (I added rpthosting.com domain)
* Now – switch to reseller level and add these new Nameservers (You firs need at Admin level, also under IP Managment assign one more IP to Admin user). I add ns3.rpthosting.com and ns4.rpthosting.com. Now all new accounts in this server, gets ns3 and ns4 nameservers as default.
* After that – I delete the main domain from second server (we don’t need that there)
* Now I set up the Multi Server in Directadmin (Admin level – Multi Server Setup)
* I add the first server IP, DirectAdmin admin username and password. Also I checked Zone Transfeer and Domain Check options.
* Now I set up the same thing (Multi Server) at the first server – pointing to second server, with same options.
* Then I modifed DirectAdmin DNS template files at bouth servers.
* Log in to SSH (or you can use Webmin filemanager also) and use fallowing commands
cd /usr/local/directadmin/data/templates/custom
cp ../dns_ns.conf .
nano dns_ns.conf (or use other text editor, what You like)
* To the bottom of that file I add in first server these lines
ns3.rpthosting.com.=|DOMAIN|.
ns4.rpthosting.com.=|DOMAIN|.
* And for the second server
ns1.rpthosting.com.=|DOMAIN|.
ns2.rpthosting.com.=|DOMAIN|.
* At my DomainControl panel (not in DirectAdmin, but Your domain registrar panel – like GoDaddy), I pointed two new IP addresses to ns3 and ns4 servers. (In GoDaddy You can do it under Domain management – Host Summary panel)
* Now all new domains getting by default 4 nameservers, no mather in what server You adding them.
Good links:
- http://help.directadmin.com/item.php?id=196
- http://www.directadmin.com/forum/showpost.php?p=135102&postcount=1
- http://www.demodemo.com/tutorials_dnsns.html
Tips:
- I added extra DNS zones for all ns1-ns4 servers also to DirectAdmin – then in my case – names resolves faster to IP-s. Also there is no problem then with Estonin top level domain registrar EENet. Maybe it is not needed.
- Do not turn on the Multi Server Setup before first steps. I turn it on before and then I add main domain to second server. First You are getting errors, and second – when You are deleting at the second server that main domain – its removes it from first server also. So turn it on after.
- Maybe is here some things still, what are missing – then I am trying to add these things aslo.
PS: Sorry about bad language – I am not English speaker.
Comments are closed.