---
title: How To Point A Domain Name To My VPS
description: "Let’s point your domain to a VPS. Pointing means rerouting a domain and giving it a new home, the VPS. A [Virtual Private Server](https://truehost.co.ke/unmanaged-cloud-servers/) (VPS) is a virtual computer that shares a physical server's resources with other VPSs.  It offers…"
url: "https://truehost.com/support/knowledge-base/point-your-domain-to-a-vps/"
updated: "2024-06-07"
---

# How To Point A Domain Name To My VPS

Let’s point your domain to a VPS. Pointing means rerouting a domain and giving it a new home, the VPS.

A [Virtual Private Server](https://truehost.co.ke/unmanaged-cloud-servers/) (VPS) is a virtual computer that shares a physical server's resources with other VPSs. 

It offers more control, flexibility, security, and scalability than shared hosting. It’s a good option for businesses and individuals who need more control over their hosting environment.

## **Create A records to point your domain to a VPS:**

1. Find the IP address of your VPS. Usually, the address you use to log in or the address on your CyberPanel.

![CyberPanel](https://lh4.googleusercontent.com/W16BA_GCgfeGzVNAAWQbQpZjLE35DfoDLe3y74OvqdWigSjrPnSZHnrvljNPx6fzap1_Ke2MjpCKI3UASahRqXRdyHF23inE2AuA9hMJHQyxu0UQyWoLcs8ahMe-HjyiPz5qB2HDOtWH7W2JFlHoyro)

1. Access your domain's DNS zone and delete any A records that include @, www, or cloudflare-resolve-to in its name.

![point your domain to a VPS](https://lh4.googleusercontent.com/zd8awTSd_3j2D5tYc_BCdp1-XoaZod9n1FMyOmyAuV1HiU8ggWue0V7XIF4_PnnyBELMYFKKpngJGQuicD7Y6lBf1UBHS3ask8ecthDnV5hakq23Grt9J2RqxFhAGbDQOVefQfMvs_ZUKg9yyJegc8s)

However, before you change records in the VPS, you must have [added the domain](https://truehost.com/support/knowledge-base/host-an-external-domain-at-truehost/). 

1. Add these two A records:

| **Record 1:** | **Record 2** |
| --- | --- |
| Name:*@ * | Name:*www * |
| Points to:*your VPS IP address* | *Points to: your VPS IP address* |
| TTL:*default* | TTL:*default* |

Another option to point your domain to a VPS is to Create A and CNAME Records. 

## **Follow this procedure: **

To locate the IP address of your VPS, follow these steps:

1. Go to your domain's DNS zone.
2. Remove any A records containing @, www, or cloudflare-resolve-to in their names.

![point your domain to a VPS](https://lh3.googleusercontent.com/Ovqmz26BKWsW1vzA_jUH8GitwBm7pTJay2hoBu2B7rkrGjcKgODDzkoKLOFYNZTko06j8M-zIkPsYoJt9mOhAHfAMwUduiBKYI8SEFuuBgbJ1oaqzcrcwP3Dhb7elkBguyU7NPDf1mmPiRYdJX8Ktco)

1. Include both the A record and the CNAME record:

| **A Record:** | **CNAME record:** |
| --- | --- |
| Name:*@* | Name*: www * |
| Points to:*your VPS IP address* |  Points to: *your domain name (e.g., domain.tld)* |
| TTL:*default* | TTL:*default* |

Once you've added these records, your domain will be pointed to your VPS. It may take up to 24 hours for the changes to propagate.

Here are some additional tips:

- Make sure that you have a static IP address for your VPS.
- You can use a third-party DNS provider if you use a domain registrar that does not allow you to add A records.
- Once you have pointed your domain to your VPS, you can access your website by typing the domain name into your web browser.

### **Why point a domain to a VPS**

1. More control over your website: With a VPS, you have full control over the operating system, software, and hardware that your website runs on. It gives you more flexibility to customize your website and make changes as needed.
2. Improved performance: A VPS can perform better than shared hosting, as you will not share resources with other websites. Leads to faster loading times and improved overall performance.
3. A VPS can offer greater security than shared hosting, as you will have more control over your website's security settings. Helps to protect your website from attacks and malware.
4. Scalability: A VPS can be easily scaled up or down to meet your changing needs. You can add more resources to your website as it grows without switching to a new hosting plan.
5. Cost-effectiveness: A VPS can be a more cost-effective solution than dedicated hosting, as you only pay for the resources that you use.

Pointing a domain to a VPS can provide several advantages, including more control, improved performance, greater security, scalability, and cost-effectiveness.

## **Final words;**

Now you have multiple methods to point your domain to a VPS. Have fast, secure, and reliable hosting for your domain.

Use these steps to direct your domain name to your VPS and establish a connection between them.
