Changed server and updated nameserver ips but still showing old ip address

nrider321

Member
Dec 7, 2013
9
0
1
cPanel Access Level
Root Administrator
So I moved from one server to another and made a backup of old cpanel account. On new server through whm I restored that account and then gave it a new designated ip. I went to 'Edit DNS Zone' for that domain name and changed all the old ip numbers including the two nameserver ip listed as ns1. ns1. and saved the config.

Even though saved in the 'Edit DNS Zone' there was no record at all under 'NS Record Report'. So in ssh I ran the script
/usr/local/cpanel/scripts/updatenameserverips.

Now the 'NS Record Report'. Was showing the ns1. ns2. entries but with the old namesever ip addresses.

So in ssh I edited the following files which had the old ip addresses still listed
vi /etc/nameserverips
vi /var/cpanel/nameserverips.yaml

Now the 'NS Record Report' lists the correct ip.

The A records etc. at the domain registrar have all been changed to reflect new nameservers and ip and after checking have appeared to have gone through the propagation perioud.

However the domain name is still not pointing to designated ip and getting 'server not found' message.

When I go to 'Basic cPanel & WHM Setup' and then 'Add an A entry for the nameserver' it is still reporting the old nameserver ip addresses.

Is there something that I am missing that is stopping domain name from pointing to this new server and why is 'Add an A entry for the nameserver' still reporting old ip addresses?

Any help would be appreciated.

Thanks.
 

nrider321

Member
Dec 7, 2013
9
0
1
cPanel Access Level
Root Administrator
Well domain does appear to be pointing to correct ip and nameservers as showing in browser now. Had found that was working on other ISP networks and I guess the ISP that was using earlier keeps old cached DNS records for a lot longer.

Still not sure why 'Add an A entry for the nameserver' is still reporting old ip addresses though.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
Hello :)

I am happy to see the issue is now resolved. Note that the "NS Record Report" is not associated with DNS resolution. It's simply a visual guide that tells you which name servers are used in your DNS zones. The important entries are the name server IP address entries at the registrar, and the "A" records that you add for NS1/NS2 in your DNS zone.

Thank you.