LowEndBox - Cheap VPS, Hosting and Dedicated Server Deals

How to Set Up Nameservers on a VPS

If you’re new here to the Low End Box community we’d like to thank you for stopping by, you have likely stopped by to find your new VPS provider, and most likely you have questions! Within the comments of this post, ask, we’ll answer! Or even publish an article on it.

This article topic was written by Dustin B. Cisneros of RackNerd, a provider of KVM VPS solutions and more.

Most commonly people are interested in setting up nameservers within their VPS – we’ll cover a few basic things below.

The easiest and most redundant way to set up a nameserver is to utilize a free DNS service which would point to your VPS IP. You can then update your domain’s nameservers to the nameservers that the DNS service provides. These services include, but are not limited to:

By utilizing a third-party DNS service such as the above, you leverage multiple endpoints (points of presence) so that users from all across the world visiting your website will receive the fastest DNS resolution response possible. It also takes the burden/worry about running your own DNS server off your plate.

The other option is to run your own DNS server, LowEndBox has several tutorials on how to set up a DNS server on Ubuntu, how to set up a DNS server on CentOS, and how to set up a DNS server on Debian.

You can then register the child nameservers of “ns1” and “ns2” (or any name, for that matter) of your domain to point to your VPS IP address. This needs to be done on the domain registrar level. Some domain registrars refer to this as “child nameservers” and some call it “Host Names”. Contact your domain registrar if you require any further clarification or assistance in getting the child nameservers registered. 

Once registered, you can now update your domain(s) nameservers to point to the newly created nameservers. Prior to selecting your next VPS provider, ask if they can assist with the process should you need an extra hand.

Which method do you prefer in handling nameservers / DNS? Do you have any questions when it comes to setting up your own nameservers? Please feel free to leave a comment below and we’d be happy to help.

Jon Biloh

No Comments

    Leave a Reply

    Some notes on commenting on LowEndBox:

    • Do not use LowEndBox for support issues. Go to your hosting provider and issue a ticket there. Coming here saying "my VPS is down, what do I do?!" will only have your comments removed.
    • Akismet is used for spam detection. Some comments may be held temporarily for manual approval.
    • Use <pre>...</pre> to quote the output from your terminal/console, or consider using a pastebin service.

    Your email address will not be published. Required fields are marked *