How Can We Help?
< All Topics
Print

Linking Your Domain to a VPS: A Step-by-Step Guide

To ensure your domain works with your VPS hosting, you need to point the domain to your server through various methods.

a) Create A Records

vps

1. First, find the IP address of your virtual private server (VPS).

2. Then, access your domain’s DNS zone to remove A Records with @, www, or cloudflare-resolve-to in their names.

3. Finally, add these two A Records:

A Record 1 A Record 2:
Name: @ Name: www
Points to: your virtual private server (VPS) IP address Points to: your virtual private server (VPS) IP address

TTL: Default

TTL: Default

b) Create A and CNAME Records

1. First, find the IP address of your virtual private server (VPS).

2. Then, access your domain’s DNS zone to remove A Records with @, www, or cloudflare-resolve-to in their names.

3. Finally, add A Records and CNAME Records:

A Record 1 A Record 2:
Name: @ Name: www
Points to: your virtual private server (VPS) IP address Points to: your domain name (e.g., domain.tld)

TTL: Default

TTL: Default

c) Specify Child Nameservers

Your domain will continue using its old name servers if you choose any of the options, but you can create Child nameservers for custom nameservers like es1.domain.tld and es2.domain.tld:

1. First, ensure your virtual private server (VPS) has a valid DNS zone, especially if running without a template, and create one if it’s not yet set up.

2. Then, create Child nameservers and ensure to create A Records for your nameservers as well.

3. After that, the current name server should be replaced with the new name server.

4. Finally, the propagation process, which may take up to 24 hours, may cause your website to be down, but it is expected to be back online soon.

Table of Contents