Setting cPanel Nameservers
Posted by Will Kruss on 27 May 2016 05:17 PM
|
|
Setting up own private nameservers on a cPanel server has many benefits. Follow quick guidelines to set it yourself. When you setup a new cPanel VPS, you'll be sent an email with two IPs in it. Initially your VPS will only have one IP address assigned. You need to add your second IP address to your cPanel installation, login to WHM -> IP Functions -> Add a New IP Address Once that is done, you need to setup your name servers. Firstly, login to your domain registrar and create the name servers (or hosts), ns1.yourdomain.com and ns2.yourdomain.com. This is not the same as simply associating name servers with your domain, so if you're unsure how to do this you may need to ask your registrar. For example in NetRegistry at the time of writing this support page the option is under the 'Domain Name Administration' and is called 'Domain hosts'. Alternatively VPSBlocks offers our initial cPanel setup which includes doing this for you as well as other cPanel setup tasks for a fee of $20. Once you have created your name servers at the registrar, you need to setup the name servers in cPanel. To do this, login to WHM -> Server Configuration -> Basic cPanel & WHM Setup. Scroll down to the bottom and enter the name servers ns1.yourdomain.com and ns2.yourdomain.com. Click 'Save Changes'. Then you need to Assign an IP address to each, and then Add an A entry for each. You can also manually set these IPs by doing the following, login to SSH (for help click here): >> From the shell you can change it with the below mentioned process >> Then access the file /var/cpanel/nameserverips.yaml >> After that restart the service Now your own name servers are setup and you can use them for any domains you wish to point to this VPS. | |
|