Set up custom nameservers on a dedicated server or VPS

You will require 2 IPs, and a dedicated server or VPS to complete this task.

For this example we will be using ns1.yourdomain.com and ns2.yourdomain.com as our nameservers. We can then use WHM to assign these IPs to our domain nameservers. Login to WHM, these details are usually provided in your welcome email.

Once logged in to WHM, the link at the very top titled “Basic cPanel/WHM Setup” is where we want to go, click on this link. Once on this page, scroll down until you find the entry titled “Primary Nameserver.”

For your primary nameserver, enter “ns1.yourdomain.com” and then choose to “Assign IP Address” using the button to the left, make note of the IP address assigned to this nameserver. And then follow through the button to complete the “Add an A entry for this nameserver” process. Afterwards, enter for your “Secondary Nameserver” (next box down) “ns2.yourdomain.com” and then continue with “Assign IP Address” to the left of this entry, make note of the IP address assigned to this nameserver, and then continue with the “Add an A entry for this nameserver” process using the link to the left of the entry.

Once this is complete, you will have the server side configuration completed, and you will now have IPs assigned to your nameservers, such as:

ns1.yourdomain.com IP: 1.2.3.4
ns2.yourdomain.com IP: 1.2.3.4

This you will need to take to your domain registrar. This last step can vary greatly from registrar to registrar, so these steps may be different at your registrar.

Login to your registrar and bring up your domain, you need to add Child Name servers or Glue Records (name will vary from registar to registrar. You will need to add 2:

ns1.yourdomain.com -> 1.2.3.4
ns2.yourdomain.com -> 1.2.3.4

NOTE: This is not the same as changing the name servers for the domain itself, but rather adding the name servers so they can be used with other domains.

Propagation of new name servers can take up to 72 hours for new name servers.

Advertisements
  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: