Thanks for your excellent tutorial. I bring up the following not in any way to belittle your excellent post, but merely to point out a few minor issues with it...
stffabi said:
login to the da server with ssh and edit the following file
/usr/local/directadmin/data/templates/dns_ns.conf
and add a third line for your second external dns server
Following the above instructions will make a change that could easily be overwritten by a future DA update.
DA has advised that the proper way to change a template is to first copy it to:
/usr/local/directadmindata/templates/custom
And make the changes to it there. They've pledged to not overwrite files in the custom subdirectory.
now everytime you create a domain it has you da server as master dns and 2 slave dns servers.
This will
not fully hide the nameserver on your DA system.
"Hiding" means not allowing other nameservers to query your nameserver. To make sure that doesn't happen you should also delete the first line in the template; the one that reads:
|NS1|=|DOMAIN|.
While you didn't mention it in your tutorial, I will add for those of us who might otherwise question it, that in setting up hidden nameservers we should
not change the name of the first nameserver in the SOA record; doing may break the way DNS gets updated. While it's probably not important to those of us who only do webhosting, it could make a difference if any of our clients are using their DNS to publish their own records and using NOTIFY commands.
afterwards you only have to create the corresponding entries for the newly created domain in the named.conf of your 2 external server. and say there your master server is the da server.
There's an excellent somewhat generic How-To on hidden primary nameservers
here.
i will also create some automation for creating the named.conf entries on the external server. i will let you know about it
I've had the automation project for creating slave DNS on other nameservers on the back-burner for some time now; I'll ask my programmer later today where he stands on it.
Jeff