Sunday, 12 February 2012

Adding nameservers to your server

In rare cases, the nameserver entries will be missing in your server.

In such cases, you can do the following to add the nameservers in your server.

1. Add a DNS zone by adding the nameserver name.

2. Assign a A record for that nameserver.

3. From the SSH as root, in the case of cPanel, you can add the entry in the file mentioned below.

===========
 /var/cpanel/nameserverips.yaml
===========

The syntax will be as follows in the above mentioned file.

nameserver name : IP : ....

You can add the appropriate entry and then Restart cPanel to make the entry active.

Once you do this, the newly added nameservers will be resolving fine. :)

Have a Nice Day....


No comments: