Link to home
Start Free TrialLog in
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.
Avatar of Dmitri Farafontov
Dmitri Farafontov
Flag of Canada image

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

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Cool. I am glad you were able to figure this out. I will flag it for a moderator to close with points refunded.
Avatar of qeng
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.
Great, feel free to reach out to me via Direct Messages if you require any further assistance about this!
Avatar of qeng

ASKER

Thx Dmitri.