Point a Domain to Your VeerHost VPS (A Records + www)

Estimated reading: 3 minutes

To make your domain load your VPS website, you need to create DNS A records pointing to your VPS IP address. This works with any domain registrar (GoDaddy, Namecheap, Cloudflare, Google Domains, etc.) and takes between 5 minutes and 48 hours to propagate worldwide.

Step 1: Find Your VPS IP Address

Log in to your VeerHost client area — your VPS IP address is shown on the VPS overview page. It looks like: 185.123.45.67

Step 2: Log In to Your Domain Registrar

Go to wherever you registered your domain (e.g., Namecheap, GoDaddy, Cloudflare). Navigate to the DNS Management or DNS Records section for your domain.

Step 3: Create the A Records

You need two A records: one for the root domain and one for www.

TypeName / HostValue / Points ToTTL
A@ (or leave blank)YOUR_VPS_IP300 (or Auto)
AwwwYOUR_VPS_IP300 (or Auto)

Replace YOUR_VPS_IP with your actual VPS IP address. Save the records.

Step 4: Verify DNS Propagation

DNS changes typically take 5–30 minutes, but can take up to 48 hours in some regions. Check propagation using:

From your terminal:

# Check what IP your domain currently resolves to:
nslookup yourdomain.com

# Or using dig:
dig yourdomain.com A +short
dig www.yourdomain.com A +short

When both commands return your VPS IP, DNS is working.

You can also use online tools like VeerHost DNS Lookup or dnschecker.org to check propagation from multiple locations around the world.

Step 5: Configure Your Web Server

Once DNS is pointing to your VPS, your web server needs to be configured to serve the domain. See:

Using Cloudflare? (Proxy vs DNS Only)

If your domain is on Cloudflare, you’ll see an orange cloud (proxied) or grey cloud (DNS only) next to your records. For a VPS:

  • Grey cloud (DNS only) — traffic goes directly to your VPS IP. Required for non-HTTP ports and for Let’s Encrypt SSL validation.
  • Orange cloud (Proxied) — traffic passes through Cloudflare. Hides your real IP, adds DDoS protection, and CDN caching. Works fine for most websites. SSL should be set to Full (Strict) in Cloudflare SSL/TLS settings.

Common Issues

Still seeing the old website after DNS change? Clear your browser cache with Ctrl+Shift+R (Windows) or Cmd+Shift+R (Mac), or open in an incognito window.

Domain resolves to the right IP but shows a web server error? The web server virtual host isn’t configured yet. Follow the hosting guide linked above.

Only www works but not the root domain (or vice versa)? Make sure you have both the @ and www A records added — not just one of them.