tiff2342

Well-Known Member
Apr 20, 2012
140
0
66
cPanel Access Level
Root Administrator
Changed IPs on one of the nameservers. What is the best way to change the IP on all the zone files? (there is a lot of them and multiple name servers)
 

MilesWeb

Well-Known Member
PartnerNOC
May 23, 2012
173
2
68
India
cPanel Access Level
Root Administrator
Twitter
If you wish to change the IP in all zone files, below is something you can try. If you are unsure if this is the solution to your question, do contact your web host OR system admin.

replace <old-IP> <new-IP> /var/named/*.db
This will replace the old with new IP in all zone files. Restart DNS/named on the server.
 

MilesWeb

Well-Known Member
PartnerNOC
May 23, 2012
173
2
68
India
cPanel Access Level
Root Administrator
Twitter
No, once you change the IP's and restart DNS service it will reflect in couple of hours worldwide. Yes, you will have to point the name server to new IP at registrar's end as well.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,883
2,256
463
Hello :)

The best way to change the IP address for multiple accounts is to use:

"WHM >> IP Functions >> IP Migration Wizard"

This is documented at:

IP Migration Wizard

Thank you.