There are two approaches to choose from at this point:
- Using two A records – one for the www subdomain and another for the domain itself.
- Using A record for the domain and CNAME for the www subdomain.
Both of these options will provide you with the same result. Start by finding the current A record value and replace it with the
dedicated IP address located earlier. Below, you’ll find a demonstration of how the entries should look like in your DNS zone.
Option 1 – Using two A records
Name | TTL | Type | Address |
example.com | 14400 | A | 153.92.211.25 |
www.example.com | 14400 | A | 153.92.211.26 |
Option 2 – Using A record and CNAME
Name | TTL | Type | Address |
example.com | 14400 | A | 153.92.211.25 |
www.example.com | 14400 | CNAME | example.com |
After pointing the domain to your VPS, it’s time to check whether the records were added correctly. Keep in mind that DNS propagation can take
up to 24 hours, thus you may have to wait at least a few hours before everything starts working. However, most DNS checkup tools provide instant results. You may also do this using the
dig command via terminal:
dig A +short hostinger-tutorials.xyz
If the output shows your VPS dedicated IP address as the A record, everything was done correctly! The remaining part is waiting for the DNS to fully propagate worldwide.