To point Namecheap DNS to Hostinger without breaking email, keep Namecheap as your DNS host and change only the two website records: the root A record and www. Your MX, SPF and DKIM records stay where they are, so your site moves to Hostinger while mail keeps arriving at Google Workspace, Microsoft 365 or Namecheap Private Email.
Quick answer: Leave the nameservers on Namecheap BasicDNS and edit only the web records. If you switch nameservers to Hostinger instead, copy every email record into hPanel first, or incoming mail can bounce.
- Copy your website IP address from Hostinger hPanel.
- Save a copy of your current Namecheap records, especially MX and TXT.
- In Namecheap Advanced DNS, set the
@A record to the Hostinger IP. - Point
wwwto the same site and delete any parking or redirect records. - Run
digto confirm the A record shows Hostinger and the MX records did not change.
In this guide
- Before You Start
- Why Switching Nameservers Can Break Your Email
- Step 1: Find Your Hostinger Website IP Address
- Step 2: Save a Copy of Your Current Email Records
- Step 3: Point the Website Records to Hostinger (Method 1)
- Method 2: Move DNS to Hostinger Without Losing Mail
- Verify the Website and Email Records
- If It Still Doesn’t Work
- Frequently Asked Questions
- Next Steps

Before You Start
- Access: your Namecheap account login and your Hostinger hPanel login.
- Back up your DNS: take a screenshot of the whole Advanced DNS page in Namecheap (Host Records and Mail Settings), or save the output of the audit commands in Step 2. If anything goes wrong, you can type the old values back in.
- Time: about 15 minutes of work. Edited records usually show up within 30 minutes. A nameserver change can take 24 to 48 hours.
- Email warning: never switch nameservers until every MX, SPF, DKIM and DMARC record already exists at the new DNS host. Mail sent while records are missing can bounce.
- Check who answers DNS today: the steps below assume the domain uses Namecheap BasicDNS. The check is shown next.
To see which nameservers your domain uses right now, run this in a terminal on your own computer:
dig +short NS yourdomain.comOn Namecheap BasicDNS it prints dns1.registrar-servers.com. and dns2.registrar-servers.com. If you see other names (Cloudflare or your old host, for example), make the record changes at that provider instead, because Namecheap’s Advanced DNS page is not being used.
Why Switching Nameservers Can Break Your Email
Nameservers are the servers that answer every DNS question about your domain: where the website lives (A and CNAME records), where mail goes (MX records) and which senders are trusted (TXT records such as SPF and DKIM).
When you replace Namecheap’s nameservers with Hostinger’s (ns1.dns-parking.com and ns2.dns-parking.com), the internet stops reading your Namecheap records. Sending servers then use whatever MX records the Hostinger zone holds. If those point to Hostinger’s own mail service, or there are none, mail goes to a server where your mailboxes do not exist and bounces.
You have two safe options:
- Method 1 (recommended): keep Namecheap BasicDNS and change only the root A record and the
wwwrecord. Email records never move, so there is nothing to break. - Method 2: copy every email record into Hostinger’s DNS Zone Editor first, then switch nameservers. Use this only if you want to manage all DNS in hPanel.
Step 1: Find Your Hostinger Website IP Address
Method 1 needs the IPv4 address of the Hostinger server that hosts your site. Hostinger assigns it per hosting account.
- Log in to your Hostinger hPanel dashboard.
- Navigate to Websites and click Manage next to your target site.
- Open the plan or hosting details panel for that site (the label varies between hPanel versions).
- Copy the website IP address listed there (for example,
203.0.113.10).
Keep the IP in a note. If the same panel also lists an IPv6 address, you can add it later as an AAAA record, but IPv4 alone is enough for the site to load.
Step 2: Save a Copy of Your Current Email Records
Before you edit anything, record how mail is set up today. This is your rollback copy if a record is deleted by mistake.
Run these two commands in a terminal on your own computer (macOS, Linux, or Windows with WSL):
dig +short MX yourdomain.com
dig +short TXT yourdomain.comThe MX command prints one line per mail server, priority first, for example 1 smtp.google.com. The TXT command prints quoted strings. One of them should start with "v=spf1. Copy both outputs into a text file.
On Windows without WSL, nslookup gives the same information:
nslookup -type=MX yourdomain.com 8.8.8.8
nslookup -type=TXT yourdomain.com 8.8.8.8If you prefer to compare against the dashboard, keep the official Namecheap Advanced DNS documentation open while you review your records.
You will usually see mail servers from one of these providers:
- Google Workspace:
1 smtp.google.com(or older 5-record setups likeaspmx.l.google.com). - Namecheap Private Email:
mx1.privateemail.comandmx2.privateemail.com. - Microsoft 365:
yourdomain-com.mail.protection.outlook.com.
In Namecheap, open Domain List > Manage > Advanced DNS and confirm these records are there. MX records sit in the Mail Settings section further down the page, not in Host Records. If you use Private Email and something looks wrong, check our guide to Namecheap Private Email MX records before you continue.
Step 3: Point the Website Records to Hostinger (Method 1)
This is the zero-risk route. Namecheap stays your DNS host, and you change only where web traffic goes.
- Log in to Namecheap, open Domain List, and click Manage next to your domain.
- Click the Advanced DNS tab.
- In the Host Records table, edit or add the records below. Click the green checkmark after each one to save it.
| Type | Host | Value | TTL |
|---|---|---|---|
| A Record | @ |
Your Hostinger website IP (e.g. 203.0.113.10) |
Automatic, or 1 min while testing |
| CNAME Record | www |
yourdomain.com. |
Automatic |
If an A record with Host @ already exists, replace its old IP instead of adding a second one. For www, an A record with the same Hostinger IP works just as well as the CNAME. Use one or the other, not both.
Then clean up and protect the rest of the zone:
- Delete Namecheap’s default parking records: a URL Redirect Record on
@and awwwCNAME pointing toparkingpage.namecheap.com. - Delete or update any old AAAA record on
@orwwwthat points to your previous host. - Leave alone every MX record, every TXT record (SPF, DKIM, DMARC, verification codes) and any mail-related CNAME such as
autodiscover.
Method 2: Move DNS to Hostinger Without Losing Mail
If you would rather manage every record in hPanel, recreate your email records at Hostinger before you change nameservers at Namecheap.
Step 1: Open the DNS Zone Editor in Hostinger
- In hPanel, go to Advanced > DNS Zone Editor.
- Scroll down to the Manage DNS records section.
Step 2: Recreate Your MX Records
Add each MX record from your Step 2 copy. For Google Workspace, the current setup is a single record, shown below. Confirm the value in the Google Workspace MX setup guide, and see our Google Workspace and Namecheap DNS guide for the full record set.
| Type | Name | Points to | Priority | TTL |
|---|---|---|---|---|
| MX | @ |
smtp.google.com (or your mail server hostname) |
1 |
3600 |
For Private Email or Microsoft 365, copy the hostnames and priorities exactly as your audit showed them.
Step 3: Copy SPF, DKIM and DMARC Records
Find your SPF record in Namecheap (it starts with v=spf1) and add it in Hostinger’s DNS Zone Editor with these fields:
Type: TXT
Name: @
TXT Value: v=spf1 include:_spf.google.com ~all
TTL: 3600Do the same for every DKIM record (selector._domainkey), the _dmarc record, any verification TXT records and any mail-related CNAME. Then delete the default MX records in the Hostinger zone that point to Hostinger’s own mail servers. If you leave them, mail is split between two providers.
Step 4: Switch the Nameservers at Namecheap
Once every record in Hostinger matches your copy, go back to Namecheap:
- Click Domain List > Manage.
- Under the Nameservers dropdown, select Custom DNS.
- Enter Hostinger’s nameservers per the Hostinger official nameserver guide:
ns1.dns-parking.comns2.dns-parking.com
- Click the green checkmark to save.
Verify the Website and Email Records
Record edits on Namecheap usually show up within 5 to 30 minutes. A nameserver change can take up to 24 to 48 hours. Instead of refreshing your browser, ask public DNS resolvers directly from your terminal.
Check that the root domain now points to Hostinger:
dig +short A yourdomain.com @8.8.8.8If it worked, the only line printed is your Hostinger IP, such as 203.0.113.10. An old IP means the change has not reached that resolver yet. Wait for the TTL to run out and try again.
Next, confirm that mail routing did not change:
dig +short MX yourdomain.com @1.1.1.1
dig +short TXT yourdomain.com @1.1.1.1Compare the output with the copy you saved in Step 2. The MX lines and the v=spf1 string should match exactly. If they do, and the A record returns your Hostinger IP, the move worked without email downtime.
For Method 2, you can also ask Hostinger’s nameserver directly with dig +short MX yourdomain.com @ns1.dns-parking.com. That shows what the new zone holds even before the nameserver change has spread.
If It Still Doesn’t Work
Hostinger Shows “Domain Is Not Pointing”
hPanel often shows a banner saying the domain is not pointing to Hostinger, even after a correct Method 1 setup. Go by what DNS actually returns: if dig shows the Hostinger IP and your site loads over HTTP and HTTPS, you can ignore the banner.
SSL Installation Fails in hPanel
Hostinger issues free Let’s Encrypt certificates automatically, but validation fails if the A record has not reached public resolvers yet. Wait until dig returns the Hostinger IP from both 8.8.8.8 and 1.1.1.1, then retry the SSL install in hPanel.
The Site Still Shows a Parking Page or the Old Host
New Namecheap domains start with a URL Redirect Record on @ and a www CNAME to the parking page. Delete both. Also delete any AAAA record that points to your old host, because visitors on IPv6 will keep reaching it.
Mail Stopped After a Nameserver Switch
The Hostinger zone is missing an MX record, or still has Hostinger’s default MX records. Compare the zone with your Step 2 copy, fix the MX rows, and remove the Hostinger mail entries. Mail that was only delayed arrives once the records are right; anything that already bounced has to be sent again.
Frequently Asked Questions
How long do Namecheap DNS changes take to reach Hostinger?
Record edits usually take 5 to 30 minutes when the TTL is Automatic or 1 minute. Resolvers that cached the old record keep it until its TTL runs out. A nameserver change is slower: allow 24 to 48 hours before you decide something is wrong.
Will my existing emails be deleted if I make a DNS mistake?
No. Your messages are stored on your mail provider’s servers, not in DNS. A wrong MX record only affects new incoming mail: senders retry for a while and then bounce. Fix the record and new mail starts arriving again, while your stored inbox stays untouched.
Do I need to pay for Hostinger Email if I keep my current mail provider?
No. As long as your MX records point to Google, Microsoft or Namecheap Private Email, mail never touches Hostinger. You do not need to activate a Hostinger email plan. Just make sure no Hostinger MX records end up in the zone that answers for your domain.
Can I put Cloudflare between Namecheap and Hostinger?
Yes. Point the Namecheap nameservers to Cloudflare, copy your records there, and proxy only the web records (orange cloud on the A and www records). Keep MX records and mail-related TXT and CNAME records unproxied (grey cloud), or mail routing breaks.
Next Steps
- In hPanel, open Security > SSL and confirm the free certificate is installed for the domain and
www. - Send a test email from an outside account, such as Gmail, and reply to it to check both directions.
- Open the test message headers and confirm SPF and DKIM pass. If either fails, follow our guide to configure SPF, DKIM and DMARC in Namecheap DNS.
If you are deploying an app rather than a WordPress site, our walkthrough on how to deploy a web app on Hostinger with Namecheap DNS and SSL covers the server side.

