Error: Unable to assign IP’s to the nameserver on Cpanel server

Posted on Updated on

In WHM the nameserver IP settings shows as “no ip assigned” for a domain, but from the command line we can see there are too IP assigned for the domains, This will make my domain down,   and change won’t effect related  to this name server.

Here we can see the two IP as in the settings

root@server [~]# cat /var/cpanel/nameserverips.yaml
--- 
ns1.domain.com: 
 11.22.333.444: 1
 count: 2
 zones: server.domain.com,domain.com
ns2.domain.com: 
 11.22.333.444: 1
 count: 2
 zones: server.domain.com,domain.com

Execute the below script will update Name Server settings. and fix nameserver conflicts even issued /scripts/fixrndc doesn’t works

root@server [~]# /usr/local/cpanel/scripts/nameserverup

Now everything works fine

root@server [/scripts]# cat /etc/nameserverips
11.22.333.444=ns1.domain.com
11.22.333.444=ns2.domain.com
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s