Author Topic: More than 2 name servers  (Read 168 times)

0 Members and 1 Guest are viewing this topic.

Offline
**
More than 2 name servers
« on: October 12, 2024, 04:33:17 AM »
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.


Offline
***
Re: More than 2 name servers
« Reply #1 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):

Code: [Select]
@       86400   IN      NS              %ns1%.
@       86400   IN      NS              %ns2%.

from the template and add the records like:

Code: [Select]
@       86400   IN      NS              NS1.NAMESERVER.COM.
@       86400   IN      NS              NS2.NAMESERVER.COM.
@       86400   IN      NS              NS3.NAMESERVER.COM.
@       86400   IN      NS              NS4.NAMESERVER.COM.

Offline
**
Re: More than 2 name servers
« Reply #2 on: October 12, 2024, 12:45:29 PM »
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




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):

Code: [Select]
@       86400   IN      NS              %ns1%.
@       86400   IN      NS              %ns2%.

from the template and add the records like:

Code: [Select]
@       86400   IN      NS              NS1.NAMESERVER.COM.
@       86400   IN      NS              NS2.NAMESERVER.COM.
@       86400   IN      NS              NS3.NAMESERVER.COM.
@       86400   IN      NS              NS4.NAMESERVER.COM.

Offline
***
Re: More than 2 name servers
« Reply #3 on: October 12, 2024, 06:54:03 PM »
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.