VPS custom nameservers

  • Answered
I want to use one of my domains as a nameserver.

The domain is registered as a nameserver at my registrar.

In AMP "Admin Details" nameservers are listed as:

Nameserver 1: ns.inmotionhosting.com
Nameserver 2: ns2.inmotionhosting.com
Nameserver 1 Ip:
Nameserver 2 Ip:

I assume I cannot point ns1.mydomain.com and ns2.mydomain.com to those IPs.

Also, I have set up a domain as a nameserver in WHM before, but when I log in to WHM for my account here, there is no "Edit DNS Zone" option in "DNS Functions." The "Advanced DNS Zone Editor" in cPanel doesn't provide access to the entire zone file, so that's not an option.

So I need to know which IPs to use in my nameserver registration, and how to edit the zone file in WHM (or anywhere).


Hello mjpinla, and thanks for the question. In order to use one of your domain names as your custom name servers, this first requires that your VPS be de-clustered from our public name servers (ns/ns2.inmotionhosting.com). Then BIND needs to be enabled on your VPS, so the VPS can respond to its own DNS queries.

This requires root access to the VPS in order to modify, so your best bet is submitting a support ticket to have this completed for you. Alternatively you can request taking root access on your VPS server, but if this is all you're looking to do it's not required. Here is our article discussing what root access is:

Root access FAQ

You'll need to let us know the domain name in your support ticket that you'd like the custom name servers setup as. Then it will be setup as:



Typically both entries will be assigned the same IP address, since having 2 IP addresses would be unnecessarily redundant since both would resolve back to your VPS anyways.

If you login to WHM as the root user it will give you full access to modify any DNS zones. Then you'd just want to add two (A) records one for (ns1.yourdomain.com) and one for (ns2.yourdomain.com) both pointing to your VPS's IP address.

Then at your domain registrar, you'd just want to ensure that domain has those two hosts also added as "glue" records, which is sometimes referred to as "maintain name servers under this domain" or something similar. Both pointed to the VPS's IP address as well.

Hope that makes sense and answers your question. If you have any further questions at all, don't hesitate to ask away!

- Jacob