Wednesday, September 7, 2011

nameserver ips showing old ips in cpanel

Advertisements

Even after changing the nameserver ips, the nameserver ips in WHM may show old ips. This post explains how to change the nameserver ip addresses in a cpanel server.
You can change this as follows:

First edit the /etc/nameserverips

root@test[~]# cat /etc/nameserverips
IP_address1=ns1.domain.tld
IP_address2=ns2.domain.tld
root@test[~]#

Now edit /var/cpanel/nameserverips.yaml

root@test[~]# cat /var/cpanel/nameserverips.yaml
---
ns1.domain.tld:
  IP_address1: 1
  count: '3'
  zones: ns1.domain.tld,domain.tld,ns2.domain.tld
ns2.domain.tld:
  IP_address2: 1
  count: '3'
  zones: ns1.domain.tld,domain.tld,ns2.domain.tld
root@test[~]#

Names of zones files can be found in /etc/named.conf
Now restart the cpanel
root@test[~]# /etc/init.d/cpanel restart

Thats it. It should effect the changes on WHM

No comments:

Post a Comment

Be nice. That's all.