Blog · 27 Nov 2026
Connect a Hostinger Domain to Vercel (Root, www and Subdomains)
By Muhammad Hamid · Last reviewed 27 Nov 2026
I host my portfolio, this blog and my free tools site on Vercel, with the domain registered at Hostinger. Here’s the setup I use. It keeps DNS at Hostinger, so email and verification records stay put.
1. Add the domain in Vercel
In your Vercel project, open Settings → Domains and add both:
example.comwww.example.com
Vercel then shows the DNS records it expects. Copy the values Vercel shows you rather than values from a blog post (including this one): Vercel has changed its recommended IPs and CNAME targets over time, and the dashboard is always current.
Choose which one is the main address. I redirect the root domain to www (Vercel uses a 308 redirect), so every canonical URL, sitemap and structured-data link uses the www version. Whichever you pick, use the same one everywhere.
2. Add the records in Hostinger
In hPanel → Domains → your domain → DNS / Nameservers → DNS records:
| Type | Name | Points to | Purpose |
|---|---|---|---|
| A | @ |
The IP Vercel shows | Root domain |
| CNAME | www |
The CNAME target Vercel shows | www |
| CNAME | blogs |
The CNAME target Vercel shows | A subdomain, e.g. this blog |
Before you save:
- Delete any old A record on
@that points to Hostinger’s parking page or hosting. Two A records means some visitors land on the wrong server. - Delete any old
wwwrecord if one exists. A name can’t have a CNAME alongside other records. - Don’t delete TXT records such as
google-site-verification=…. Removing it un-verifies your Search Console property.
3. Add a subdomain later
For a second project on a subdomain (for example tools.example.com):
- Create a separate Vercel project and add
tools.example.comunder its Domains. - In Hostinger, add a CNAME with name
toolspointing to the target Vercel shows.
Nothing else changes. The root domain and other subdomains keep working.
4. Check that DNS is right
You don’t have to wait and refresh. Look the records up directly with a DNS lookup tool:
Aforexample.comshould show only Vercel’s IP.CNAMEforwww.example.comshould show Vercel’s target.TXTforexample.comshould still show your Google verification.
The TTL column tells you how long resolvers may keep showing an old value. If you still see an old record, wait for that many seconds.
While you’re there, a WHOIS lookup shows your domain’s expiry date. Put it in your calendar; an expired domain takes the website and email down with it.
5. Tell search engines
- Google Search Console: a Domain property verified with a DNS TXT record covers the root,
wwwand every subdomain. Submit each site’s sitemap (for examplehttps://blogs.example.com/sitemap-index.xml). - Bing Webmaster Tools: import the sites from Search Console instead of verifying again.
Common problems
“Invalid configuration” in Vercel. An old A or CNAME record is still there, or the new one has a typo. Look up the record type Vercel complains about and compare it with what Vercel expects.
The site works on www but not on the root (or the other way around). One of the two records is missing. Both names need a record, even when one only redirects.
SSL certificate pending. Vercel issues the certificate after DNS points to it. Once the lookup shows the right values, it’s usually ready within minutes.
FAQ
Should I change my nameservers to Vercel?
You don't have to. Keeping Hostinger's nameservers and adding an A record and a CNAME record works fine, and it keeps your email and verification records where they already are.
How long does it take for the domain to work?
Often a few minutes. If the domain had old records, wait until their TTL expires, which can take up to a day or two in the worst case.
Do I need a new Search Console property for a subdomain?
Not if you verified a Domain property (with a DNS TXT record). It covers the root domain, www and every subdomain.