Avatar of qeng
qeng
 asked on

How to reset Nameservers in WHM after Server Migration

BACKGROUND:
A ways back, I'd set up nameservers on my VPS (let's call them 'ns1.mydomain.com' and 'ns2.mydomain.com').  I host a couple of dozens websites on that VPS.

For all of my domains, on the domain registrar's site, I'd set the Nameservers for that domain to Custom Nameservers:  'ns1.mydomain.com' and 'ns2.mydomain.com'.

Recently, I had to ask my VPS provider to create a new server for me (let's call it 'newVPS'), leaving my previous VPS (let's call it 'oldVPS') active so I could migrate or re-create accounts and contents from the oldVPS to the newVPS.

Both the oldVPS and newVPS use WHM/CPanel admin interfaces.  
The oldVPS is setup as (cut and pasted from the WHM panel banner): 'CENTOS 6.9 i686 virtuozzo – oldvps  WHM 56.0 (build 52)'
The newVPS is setup as (cut and pasted from the WHM panel banner): 'CENTOS 7.4 virtuozzo [newvps]  v68.0.21'

My understanding (which is limited in these areas) is that the nameservers I setup on my VPS have to be associated with one of the domains I own/host on that VPS.

The nameservers which I had previously setup on oldVPS were associated with 'mydomain.com' one of the domains/accounts hosted on oldVPS.  

For simplicity, I'm thinking of creating new nameservers on newVPS and associate them with 'myotherdomain.com', another domain/account to be hosted on newVPS.

QUESTION:
How do I create my new nameservers on newVPS, say 'ns1.myotherdomain.com' and 'ns2.myotherdomain.com', presumably from newVPS's WHM (I'm guessing under one of the DNS Functions but not sure which one, e.g. 'Add a DNS Zone', or 'Add an A entry for your Hostname', etc.)?

EDIT:
The problem i'm having is that after I add an A entry for the root account on my VPS it reverts back to the IP address it had on the old server.  I've tried to assign different namerservers on the old server thinking that it was overiding the IP addresses I was setting on the new server but to no avail.
Linux* WHMLinux Security* CentOSDNS

Avatar of undefined
Last Comment
qeng

8/22/2022 - Mon
Dmitri Farafontov

So essentially you would like your newVPS to take over the oldVPS for DNS management?
ASKER CERTIFIED SOLUTION
qeng

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Dmitri Farafontov

Cool. I am glad you were able to figure this out. I will flag it for a moderator to close with points refunded.
qeng

ASKER
No worries on the points Dmitri and thank you for responding.  I may ultimately require your assistance with the latest server if I have issues unhooking the previous nameservers but it will be cleanest if I re-issue a question with specifics to the problem then, if needed.

Thx for your feedback.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Dmitri Farafontov

Great, feel free to reach out to me via Direct Messages if you require any further assistance about this!
qeng

ASKER
Thx Dmitri.