This is how you add or change a nameserver using GoDaddy.com as your registrar and WHM/cPanel. At the time of writing, I am using WHM 11.24.2 on a machine running CentOS 5.3.
Create a new nameserver in GoDaddy.com
- Log into GoDaddy.com.
- Click on ‘Domain Manager’ and then the domain to which you will be adding a name server.
- At the bottom-left corner of that page, you will see a box like this one:
Click the ‘add’ link. - Define the nameserver like this:
- Click OK.
- Repeat these steps for all the nameservers you will be defining. Typically, you need to create at least two, and they can share the same IP address.
Prepare the server
- ssh into the server and su to root.
- add the nameserver ip addresses in /etc/nameserverips in the following format:
71.199.9.176=ns1.devinbaldwin.com
71.199.9.176=ns2.devinbaldwin.com
Configure WHM
- Log in to WHM as root.
- Click on ‘Server Configuration’ > ‘Basic cPanel/WHM Setup’.
- Modify the ‘Primary Nameserver’ and ‘Secondary Nameserver’ fields to match the new nameserver.
- Click on ‘Add an A entry for this nameserver’ on each of the new nameservers, enter the correct IP address in the popup, and click ‘Add Entry’.
- Select a nameserver from ‘Service Configuration’ > ‘Nameserver Selection’. Bind is pretty much standard, but as long as the nameserver is not Disabled, you should be fine.
Modify Resellers’ Nameservers
- Go to ‘Resellers’ > ‘Reseller Center’.
- Under the ‘Reseller Modifications’ section, select a reseller, then click ‘Edit Privileges/Nameservers’.
- At the bottom of the page, enter in the new name servers.
- Click ‘Save All Settings’.
If you need me to expand one of these sections, please comment.
Hello,
To be sure, in configuration WHM .4
The IP Address is the one of the server in WHM, 71.199.9.176 in your example ?
Thanks
Oli
That is correct. Your name servers can have different ip addresses than websites on the same server, but in this example, they share the same IP address.
Thanks a lot, these settings help me a lot configuring my VPS server…thanks very much.