Skip to main content
All CollectionsVPSGetting Started
How to point a domain to your VPS
How to point a domain to your VPS

Pointing a domain to your virtual private server

Updated over a month ago

For your domain to work with your VPS hosting, you need to point the domain to your server. There are several ways to do that.

Before you continue

The nameservers changes should be made on your domain provider's platform; that is, where your domain is currently pointed to via nameservers.

If you purchased the domain at Hostinger, go to the VPS page on hPanel, click on Manage next to your server, and select DNS Manager from the left sidebar of the VPS dashboard.

Next, enter your domain name and click on Add:

Hostinger's add domain input

The domain name will be automatically detected, and you can proceed to the Domains dashboard to follow the next steps.

If you purchased your domain from another provider, you will find Hostinger's nameservers in this page. You'll need to enter these nameservers into your domain provider's settings.

Hostinger's name servers

To learn more, refer to this guide: Managing DNS records at different registrars.

Once located on your domain's DNS zone management, point the domain to your VPS using one of the following options:

Option 1 – Create A records

The easiest way to point your domain to your VPS is to create A records:

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

  2. Add these two A records:

A Record 1

A Record 2

Name: @

Points to: your VPS IP address

TTL: default

Name: www

Points to: your VPS IP address

TTL: default

Option 2 – Create A and CNAME records

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

  2. Add the following A record along with the CNAME record:

A Record

CNAME Record

Name: @

Points to: your VPS IP address

TTL: default

Name: www

Points to: your domain name (e.g., example.com)

TTL default

Keep in mind that domain propagation may take up to 24 hours before fully pointing to the VPS.

Did this answer your question?