Mohammedz.com

For Linux and Shell scripting.

Additional nameservers in cPanel.

Leave a comment


You can see an option in WHM to add additional nameservers. You can give only the nameserver name, but not the IP. Most of the time it will be taking some wrong IPs by its own.

To overcome this problem, you will have to edit “/etc/nameserverips” file from backend.

/etc/nameserverips should look like this:
192.168.1.100=0
192.168.1.101=ns1.your-dns.com
192.168.1.102=ns2.your-dns.com
192.168.1.103=ns3.your-dns.com
192.168.1.104=0

If you want to add one more nameserver ns4.your-dns.com, you can just insert it instead of 0.

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