To set up custom nameservers using your domain, you need to complete the following steps:
Step 1: Create DNS Records for Ns1 and Ns2
Create the following DNS records in your DNS manager:
- Type: A Record
Name:ns1.yourdomain.com.
- Make sure to include the dot at the end
Value/Record: <IP address for ns1> - Type: A Record
Name:ns2.yourdomain.com.
- Make sure to include the dot at the end
Value/Record: <IP address for ns2>
IP Address:
If you have a VPS or server, you can use any one or two IPs from your VPS or server.
If you have reseller hosting, the IP addresses for the nameservers were sent to you in your reseller hosting account information email.
DNS Manager:
You need to add the above records on the server your domain is resolving to.
If you are using third-party DNS hosting (or third-party nameservers for your domain), the DNS manager is located in the third-party control panel.
If your domain is hosted with us, you can access the DNS manager from your hosting control panel:
- On cPanel/WHM: WHM > DNS Zone Manager > Manage (next to your domain).
- On DirectAdmin: DirectAdmin > Server Manager > DNS Administration.
Note:
If your domain is not resolving to our servers, you need to add the above DNS records on the server your domain is resolving to in addition to adding them on our server.
Step 2: Register the Custom Nameservers
Go to your domain control panel at your domain registrar and register "child nameservers" or "private nameservers" using the following details. Some registrars may refer to them as "glue" records.
- Nameserver 1 Hostname: ns1.yourdomain.com
Nameserver 1 IP: <IP address for ns1> - Nameserver 2 Hostname: ns2.yourdomain.com
Nameserver 2 IP: <IP address for ns2>
Step 3: Configure Reseller Hosting/VPS/Server
Set up your reseller hosting/VPS/server to use the custom nameservers:
- Add the custom nameservers:
On cPanel/WHM: Go to WHM > Basic WebHost Manager Setup.
On DirectAdmin: Go to DirectAdmin > Server Manager > Name Servers. - Enter the following details:
Nameserver 1:ns1.yourdomain.com
Nameserver 2:ns2.yourdomain.com
- Click "Save Changes"
- Done! You can now use your custom nameservers.
Step 4 (Optional)
Your primary domain may still be using NS records using the old nameservers assigned during account creation on the hosting server. It is time to change them to your custom nameservers.
Go to DNS Manager:
- On cPanel/WHM: WHM > DNS Zone Manager > Manage (next to your domain).
- On DirectAdmin: DirectAdmin > Server Manager > DNS Administration.
Delete old NS records:
- NS records are marked as "NS" in the "Type" column.
- Delete all old NS records.
Create new NS records:
- Click "Add Record" and enter the following values:
Type: NS Record
Name:yourdomain.com.
- Make sure to include the dot at the end
Value/Record:ns1.yourdomain.com
- Click "Save Record".
- Repeat the above steps to add ns2.yourdomain.com.
Modify the SOA record (cPanel/WHM only):
- Click "SOA" next to "Filter" below the search bar.
- Click Edit and change the following value:
Mname:ns1.yourdomain.com
- Done!