Note: The domain provider must allow this, If you are unsure, Contact your Domain provider.
It's best-practice to have name servers on 2 different machines, Direct-admin adds this feature to use 2 servers running directadmin, but when you have only one server there is an alternative: Using the Domain provider's NS as secondary.
To do this you need to know the IP addresses of the servers that will request AXFR on the domain-providers end. I'll be using 1.2.3.4 as an example.
Edit /etc/named.conf and uncomment the line
and enter the IP as follows:
If they use multiple IP's, just append them, seperated with a ";".
Now you will have to do a update to the domains. (so that the SOA records change) and in a few hours you should be able to see that both your own nameserver and the domain provider's nameserver are serving the same dns-records. (you can use "dig domain.com soa @ns1.yournameserver.com" and "dig domain.com soa @ns2.yourprovidersnameserver.com" to view / compare the SOA records)
You might then change the nameservers, so that the secondary nameserver is the providers nameserver.
It's best-practice to have name servers on 2 different machines, Direct-admin adds this feature to use 2 servers running directadmin, but when you have only one server there is an alternative: Using the Domain provider's NS as secondary.
To do this you need to know the IP addresses of the servers that will request AXFR on the domain-providers end. I'll be using 1.2.3.4 as an example.
Edit /etc/named.conf and uncomment the line
Code:
//allow-transfer { none; };
and enter the IP as follows:
Code:
allow-transfer { 1.2.3.4; };
If they use multiple IP's, just append them, seperated with a ";".
Now you will have to do a update to the domains. (so that the SOA records change) and in a few hours you should be able to see that both your own nameserver and the domain provider's nameserver are serving the same dns-records. (you can use "dig domain.com soa @ns1.yournameserver.com" and "dig domain.com soa @ns2.yourprovidersnameserver.com" to view / compare the SOA records)
You might then change the nameservers, so that the secondary nameserver is the providers nameserver.
Last edited: