Results 1 to 1 of 1

Thread: How to setup DNS with your VPS.

  1. #1

    Default How to setup DNS with your VPS.

    Generally VPS customers will want to use their VPS server as a DNS server so that you are not using our DNS servers (although you can do that too). Here are the most common scenarios and how to get DNS working and configured on your VPS:

    1. Linux VPS server with WHM/cPanel.

    The good news is that the DNS application is already installed. Any domain you add through your servers WHM panel will automatically set a DNS zone on the server and you can edit your DNS records under "DNS Functions". To take advantage of this, you'll need to set up custom nameserver in WHM/cPanel, then register the nameservers at your domain's registrar. Once that is finished any domain you host on your server can use those nameservers to point the domains DNS to your VPS server. Follow these steps to get started:

    1. Go to Basic cPanel & WHM Setup
    2. Scroll to bottom of page
    3. Click the "Add an A entry for this nameserver" button next to Nameserver 1
    4. On the popup that loads, enter the server's IP in the text box, then click the "Add Entry" button
    5. Repeat Steps 3 & 4 for Nameserver 2

    Once this is done, you will need to go to the registrar where your domain was registered and register your nameservers. This can be done by following the steps in the Creating Custom Nameservers forum post.

    If we registered the domain on your behalf, you'll need to submit a support ticket to obtain your "" credentials. That will allow you to follow the steps in the OpenSRS Custom Nameservers video tutorial to register your custom nameservers.

    2. Windows VPS server. (Windows Server 2008)

    By default, windows VPS servers do not have DNS functions. However they can easily be added, To install DNS server from the Control Panel, follow these steps:

    1. From the Start menu, select | Control Panel | Administrative Tools | Server Manager.
    2. Click on "roles", under "roles summary", click "add role services"
    3. Check the "DNS server" box and click next, then next again, then "install". Close when done.

    After installing DNS, you can find the DNS console from Start | All Programs | Administrative Tools | DNS.

    Next you will want to add a DNS zone for your main domain and configure some hostnames to use for custom nameservers. Future domains you host on your VPS will use these nameservers to point the domain name to your VPS server.

    1. Select DNS from the Administrative Tools folder on the start menu to open the DNS console.
    2. Right click on the "forward lookup zones" folder, underneath your server name, and select "new zone".
    3. Click next and then select "primary zone".
    4. For zone name, use the domain name want to use for name servers. (Do not use www, or any sub-domain prefix. Just the domain name, like "") Click Next.
    5. Leave the default option checked "create a new file with this file name" and Click Next.
    6. Make sure "do not allow dynamic updates" is selected on the next, click Next and then Finish.

    Now that your main domain has a DNS zone, you can configure some sub-domain A records to act as hostnames for your nameservers.

    1. Load the DNS console, expand "forward lookup zones".
    2. Find your domain, right click and select "New Host (a or AAAA)".
    3. For Name, input "NS1" (or whatever you like), and then use the main ip address of your VPS server. Select the "create associated pointer record" option, and click "add host".
    4. Repeat the steps for your second nameserver "ns2" or whatever you like.

    Now that you have the sub-domain A records configured in your DNS. You can register these hostnames/sub-domains with your domains registrar as nameservers and use them to point future domains to your VPS server. Once this is done, you will need to go to the registrar where your domain was registered and register your nameservers. If we registered the domain on your behalf, go to and submit a ticket with the nameservers you selected and ask to have us register them with the registrar with your servers IP address(es). If we did not register your domain name, you will need to contact the place where your domain is registered and register your nameservers and server IP there.

    3. We manage the DNS for you.

    This would involve using our DNS nameservers (ns1 and and having our support department add the DNS records manually for each site hosted by your VPS server. This would be done via our ticket system at

    This option is good if you do not have many sites on your server and those site's DNS settings do not change often, where having your own DNS server would not be much use. However, if you want to directly manage the DNS records yourself, you would need to include DNS functions on your VPS.

    Last edited by Cameron L; April 18th, 2011 at 02:07 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts