• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

How to Connect a Domain with a VPS (The Easy Way)

When setting up a new VPS, one of the most common tasks is to link a domain name. The process is roughly the same as with a shared hosting account, although a VPS may or may not come with ready-made nameservers available.

Often, you will need to configure your own nameservers on a VPS. To avoid this, and get started as quickly as possible, we will use an easy method to point a domain to a VPS (or other server).

Requirements:
  • Domain name registered (.com, .net, etc.)
  • Using default nameservers and DNS system of the registrar (default settings).
  • IP address of your VPS or server.

Here are the instructions:

- Log in to your domain registrar*(where your domain was purchased), for example Namecheap or GoDaddy.

- Locate the section for adding or modifying DNS Zones. Look for "Records" or "Zones."
Screen-Shot-2014-07-29-at-2.30.11-PM.png


- Choose your domain (if not already selected), and proceed to Add a new DNS record.

- Add a record of type "A" (Address Record). Fill in the fields like this:
Screen-Shot-2014-07-29-at-2.17.30-PM.png

Subdomain: @
Record/Host: 185.185.185.21 (Your server's IP address)

- Additionally, add a CNAME record for subdomain "www" pointing to host "domain.com" (your domain) to enable use of www.yourdomain.com.

Save the new settings, and exit. That's it!

The crucial step is pointing "@", which stands for your root domain 'domain.com', to the IP address of your VPS. The registrar's nameservers will now host this record, and all traffic to your domain will be automatically routed to the server IP address. It may take up to 12-24 hours for the new DNS changes to propagate around the Internet, so you may not see the change take effect immediately.

Note that if your registrar's format does not allow "@", you can usually leave the 'subdomain' field empty, because you are entering a record for the root domain.

Archived in our VPS Hosting Blog.
 
Back
Top