Hostinger → Vercel: connect your domain in minutes

Step-by-step guide to connect a Hostinger-registered domain to a Vercel project. Includes DNS records, www redirect, verification, and troubleshooting.

Exact steps and DNS records to connect a Hostinger-registered domain to a Vercel project. Works for the apex (randomiser.xyz) and the www subdomain. Copy-paste friendly.

Before you start

Make sure you have:
  • A Vercel project deployed (Production)
  • Your domain is managed at Hostinger (DNS Zone Editor access)
  • You can keep this tab open on Vercel's Domains page
  • 1) Add your domain in Vercel

    1. Open your project in Vercel → Settings → Domains
    2. Click Add and enter your apex domain (e.g. randomiser.xyz)
    3. Attach it to the Production environment

    Vercel will now show the DNS records you need. Keep that page open.

    Vercel will now show the DNS records you need. Keep that page open.

    Vercel Add Domain dialog showing how to add a domain to a project

    Vercel Add Domain dialog showing how to add a domain to a project

    2) Create DNS records in Hostinger

    In Hostinger, go to hPanel → Domains → DNS Zone Editor for your domain, then add these records:
    Hostinger DNS settings navigation showing where to find DNS Zone Editor

    Hostinger DNS settings navigation showing where to find DNS Zone Editor

    Apex domain (randomiser.xyz)

    Add an A record with these values:
    Type: A
    Name/Host: @
    Value: 76.76.21.21
    TTL: 300–3600

    www subdomain (www.randomiser.xyz)

    Add a CNAME record with these values:
    Type: CNAME
    Name/Host: www
    Value: cname.vercel-dns.com
    TTL: 300–3600
    Hostinger DNS record creation interface showing how to add DNS records

    Hostinger DNS record creation interface showing how to add DNS records

    Why: Vercel routes apex domains via a single A record to 76.76.21.21.
    Alternative: If Vercel shows a project-specific CNAME (like randomiser-xyz.vercel.app or xyz.vercel-dns.com), use exactly what Vercel displays.
    Important: Delete any old/conflicting records:
  • Other A records for @
  • AAAA records (IPv6) for @ or www
  • Any CNAME for @ (apex can't be a CNAME)
  • 3) Verify and make it live

    1. Back in Vercel → Settings → Domains, click Refresh or Verify
    2. Vercel should show a green check for both randomiser.xyz and www.randomiser.xyz
    3. Enable Redirect www → apex in Vercel if you want www to redirect to randomiser.xyz
    Vercel domains page showing successfully verified domains with green checkmarks

    Vercel domains page showing successfully verified domains with green checkmarks

    SSL: Vercel issues certificates automatically once DNS is correct.

    4) Troubleshooting

    Common issues and solutions:
  • Still pending? DNS can take time (usually 5–30 min, up to a few hours). Check with dig or an online DNS checker
  • Multiple A records? Keep only 76.76.21.21 for @
  • IPv6 causing conflicts? Remove AAAA for @/www unless you've configured it for Vercel specifically
  • Using Cloudflare? Temporarily set the record to "DNS only" (grey cloud) until verification succeeds
  • That's it! Your Hostinger domain should now be connected to your Vercel project with automatic SSL certificates. The process typically takes 5-30 minutes for DNS propagation.