20% OFF Dedicated Servers for the first 12 months of service!

USE COUPON CODE: Q22018

Ends June 30, 2018

*T&C Apply

How To change Name-Server Ip on a cPanel Server

The file that actually handles WHM > DNS Functions > Nameserver IPs area is at
/var/cpanel/nameserverips.yaml .

So if you want to change the name-server Ip on your cPanel Server, you’d want to make a backup of that file first and then modify it:

cd /var/cpanel
cp nameserverips.yaml nameserverips.yaml.back
nano nameserverips.yaml

and modify the IPs there