More than 2 name servers

Started by anandmys, October 12, 2024, 04:33:17 AM

Previous topic - Next topic

anandmys

I would like to have 4 name servers on same server. Current CWP GUI gives option for 2 name servers. Can anyone guide?

Background: I am migrating my VPS. Now migration is mostly done and most of the domain name servers are updated to new server.

I want to make sure that if some domain which may be still using old name servers continue to work once I suspend the old VPS.


cyberspace

Try to edit the default DNS zone template:
https://wiki.centos-webpanel.com/custom-dns-zone-template

Actually you need to remove the records (make backup of the default template before you edit it):

@       86400   IN      NS              %ns1%.
@       86400   IN      NS              %ns2%.


from the template and add the records like:


@       86400   IN      NS              NS1.NAMESERVER.COM.
@       86400   IN      NS              NS2.NAMESERVER.COM.
@       86400   IN      NS              NS3.NAMESERVER.COM.
@       86400   IN      NS              NS4.NAMESERVER.COM.


anandmys

I am looking at creating cwppro VPS with 2 sets of name servers

Like a domain pointing to

ns1 & ns2 should work at n3 & ns4 also

Currently my VPS nameservers are

ns1.domain1.com
ns2.domain1.com

I want to make this VPS work with

ns1.domain2.com
ns2.domain2.com

while

ns1.domain1.com
ns2.domain1.com

continue to work




Quote from: cyberspace on October 12, 2024, 10:48:28 AM
Try to edit the default DNS zone template:
https://wiki.centos-webpanel.com/custom-dns-zone-template

Actually you need to remove the records (make backup of the default template before you edit it):

@       86400   IN      NS              %ns1%.
@       86400   IN      NS              %ns2%.


from the template and add the records like:


@       86400   IN      NS              NS1.NAMESERVER.COM.
@       86400   IN      NS              NS2.NAMESERVER.COM.
@       86400   IN      NS              NS3.NAMESERVER.COM.
@       86400   IN      NS              NS4.NAMESERVER.COM.


cyberspace

Then just change the nameservers in CWP, rebuild the DNS zones for the domains to reflect the changers in the DNS zones then update the nameservers at the registrar for your domains.