Setting Up Private Nameserver with Cpanel

1. Register Your Domain

First of all you should have a registered domain to start with. If you dont have one then register your domain (eg mydomain.com) with a registrar(Domain Registration Company) like register.com

2. Need 2 IP Addresses

Most of the dedicated or VPS hosting comes with multiple IP addresses. If you dont have any available IP addresses you have to purchase it from the hosting provider.Ideally you should have one IP for your server and 2 others for your Nameservers.

3. Register the Nameserver with the registrar

For this login into your registrar's website with your account information.Choose the domain from your domain management page(or some thing like MY DOMAINS & SERVICES).And register your name servers there.

4. Fix NDC

You have to login into your server as root using SSH.$ cd /scripts$ ./updatenow$ ./fixndc

Setting up Nameservers

One of the most sort after information in the web world is how to set up Name Servers. I have spend lot of time browsing the net seeking for information pertaing to Linux Web Hosting, configuring servers, Setting Name server etc...