Difference between revisions of "Private Nameservers in WHM/cPanel"
(Created page with "To set up private nameservers we need to have 2 IP addresses. Let us set up ns1.domain.com and ns2.domain.com Here are the steps: Login to whm: https://YourIP:2087 Find the...") |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
Here are the steps: | Here are the steps: | ||
+ | |||
+ | '''Step 1. Configuring server''' | ||
+ | |||
Login to whm: https://YourIP:2087 | Login to whm: https://YourIP:2087 | ||
Line 11: | Line 14: | ||
If you don't see those name servers, specify them and press "Assign IP address" | If you don't see those name servers, specify them and press "Assign IP address" | ||
You can also do this from command line: | You can also do this from command line: | ||
+ | Remove cache file: | ||
+ | rm /var/cpanel/nameserverips.cache | ||
+ | Before you make any changes to ns file you can make a backup: | ||
+ | cp /var/cpanel/nameserverips.yaml /var/cpanel/nameserverips.yaml.old | ||
+ | Open ns file: | ||
nano /var/cpanel/nameserverips.yaml | nano /var/cpanel/nameserverips.yaml | ||
Edit the file so that it contain your IP adresses and name servers like below: | Edit the file so that it contain your IP adresses and name servers like below: | ||
Line 18: | Line 26: | ||
count: 1 | count: 1 | ||
zones: domain.com | zones: domain.com | ||
− | + | ns2.domain.com: | |
46.21.145.131: 1 | 46.21.145.131: 1 | ||
count: 1 | count: 1 | ||
zones: domain.com | zones: domain.com | ||
+ | '''Step 2. Register your name servers''' | ||
+ | |||
+ | Login to your domain control panel (at your registrar) and create child name servers ns1 and ns2. Exact steps may vary depending on your registrar. | ||
+ | |||
+ | '''Step 3. DNS Zones''' | ||
+ | |||
+ | Find the navigation section on the left called Edit DNS Zone, under DNS Functions. | ||
+ | |||
+ | Select your domain and press "Edit". | ||
+ | |||
+ | Here you can add and edit dns records. | ||
+ | |||
+ | If you can't see your domain in dns zones, you can add it in the navigation section on the left called Add a DNS Zone, under DNS Functions. |
Latest revision as of 15:49, 4 November 2013
To set up private nameservers we need to have 2 IP addresses. Let us set up ns1.domain.com and ns2.domain.com
Here are the steps:
Step 1. Configuring server
Login to whm: https://YourIP:2087
Find the navigation section on the left called Basic cPanel & WHM Setup, under Server Configuration. This is the first item on the left navigation bar. Find Nameservers section at the bottom. If you see ns1.domain.com and ns2.domain.com you can skip this step. If you don't see those name servers, specify them and press "Assign IP address" You can also do this from command line: Remove cache file:
rm /var/cpanel/nameserverips.cache
Before you make any changes to ns file you can make a backup:
cp /var/cpanel/nameserverips.yaml /var/cpanel/nameserverips.yaml.old
Open ns file:
nano /var/cpanel/nameserverips.yaml
Edit the file so that it contain your IP adresses and name servers like below:
--- ns1.domain.com: 89.233.106.224: 1 count: 1 zones: domain.com ns2.domain.com: 46.21.145.131: 1 count: 1 zones: domain.com
Step 2. Register your name servers
Login to your domain control panel (at your registrar) and create child name servers ns1 and ns2. Exact steps may vary depending on your registrar.
Step 3. DNS Zones
Find the navigation section on the left called Edit DNS Zone, under DNS Functions.
Select your domain and press "Edit".
Here you can add and edit dns records.
If you can't see your domain in dns zones, you can add it in the navigation section on the left called Add a DNS Zone, under DNS Functions.