How to Point a Domain to Hostinger (Nameservers and A Records)
Two ways to connect a domain to Hostinger hosting: change the nameservers, or keep your DNS and point an A record instead. Plus how to verify it worked.
Live:Hostinger's 48-month pricing is down to$2.99/mo— free domain + SSL included.
See the dealHow Hostinger's free automatic SSL works, where to find it in hPanel, how to fix a certificate stuck in a pending state, and how to force HTTPS site-wide.
Every Hostinger plan includes free SSL, and certificates are unlimited — there is no per-domain charge and no premium certificate to upgrade to. On most setups the certificate is issued automatically once your domain resolves to Hostinger, and the only thing left for you to do is turn on the redirect that forces visitors onto HTTPS.
The interesting part is what to do when it does not go smoothly, because a certificate stuck in a pending state is one of the most common first-week problems. It is almost never a certificate problem.
Open Websites, select the site, and open the SSL section. That screen shows the certificate status for every domain and subdomain attached to the site, and it is where you install or refresh a certificate manually.
If you have several domains on one plan, each is handled separately. On Premium that is three sites; on Unlimited and Cloud the count is higher, and each one gets its own certificate at no extra cost.
When you add a domain to a site and the DNS resolves to Hostinger’s servers, the panel requests a free certificate from a certificate authority. The authority then validates that you control the domain, typically by asking for a file over plain HTTP on port 80. If it gets the expected response, the certificate is issued and installed.
Two consequences follow from that mechanism, and they explain nearly every failure.
First, port 80 has to be reachable and answering from Hostinger’s server. If a third-party proxy or CDN sits in front of the domain and intercepts the request, validation can fail. Second, the domain has to actually point at Hostinger. A domain still resolving to the old host will never validate, no matter how many times you click install.
The rule that saves the most time: when a certificate will not issue, stop looking at the certificate. Run
dig yourdomain.com A +shortand check the answer first. Nine times out of ten the problem is there.
| Status | What it means | What to do |
|---|---|---|
| Active | Certificate issued and installed | Turn on force HTTPS |
| Pending / in progress | Validation requested, not yet complete | Wait 30 minutes, then check DNS |
| Not issued | Validation failed or never started | Verify DNS, then re-run the install |
| Expired | Renewal did not complete | Confirm DNS is unchanged, then reissue |
Issuance is normally a matter of minutes. A couple of hours is still within normal range on a freshly pointed domain. Anything beyond that is a DNS or proxy issue.
DNS has not propagated. The most common cause by a wide margin. Pointing a domain and immediately expecting a certificate is the classic first-week mistake — our domain pointing guide covers the verification commands.
A proxy is in the way. If the domain is behind a third-party CDN with proxying enabled, validation requests may never reach Hostinger. Temporarily disabling the proxy usually resolves it. Note that Hostinger’s own nameservers are already Cloudflare-protected, so you do not need to add a second Cloudflare layer — doing so causes more problems than it solves.
The domain is not assigned to a site. A domain parked on the account but not attached to a website has nothing to validate against. Attach it to the correct site in hPanel, then install the certificate.
A valid certificate does not automatically redirect anyone. Visitors who type http:// still get an insecure connection until you tell the server to send them elsewhere. There are two ways to do that, and they are not mutually exclusive.
In the site’s SSL section there is a force HTTPS option. Turn it on. This adds a server-level redirect for the domain, which is the simplest approach and covers every URL on the site without you writing anything.
Use this unless you have a specific reason not to.
If you need finer control — excluding a path, handling a proxy, or working around a plugin that rewrites URLs — edit .htaccess in public_html through the file manager.
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
A few notes on that block. The R=301 tells browsers and search engines this is permanent, which is what you want. The rule preserves the requested path and query string, so a link to /blog/post/?utm=x lands on the secure version of the same page. And if the file already contains a WordPress block between # BEGIN WordPress and # END WordPress, put your rule above it.
Take a copy of the original file before you edit it. A malformed .htaccess returns a 500 error for the whole site, and restoring the copy takes seconds while debugging takes much longer.
WordPress stores its own idea of the site URL, and it will happily keep generating http:// links even when the server is redirecting.
Go to Settings → General and confirm both WordPress Address and Site Address begin with https. If they do not, change them. Then check any plugin or theme option that stores an absolute URL — a logo, a background image, a custom footer script — because those live in the database and are not affected by the settings page.
Mixed content is what happens when an HTTPS page pulls in a resource over HTTP. Browsers treat it differently depending on the resource: images and audio may be upgraded automatically or blocked, while scripts and stylesheets are blocked outright, which is why a page can render with no styling at all.
To find them, load the site in a private window, open the browser developer console, and look for warnings mentioning insecure or mixed content. Each one names the URL responsible.
| What is flagged | Where it usually comes from | Fix |
|---|---|---|
| Stylesheet or script | Theme header, a plugin’s CDN setting, a hard-coded URL | Change the URL to https in the theme or plugin settings |
| Image | Content pasted from another site, an old post, a widget | Edit the post or the database entry and update the URL |
| Font | A custom font loaded over http | Update the font source, or self-host it |
| Iframe | An embedded video or map using an http source | Use the provider’s https embed code |
After fixing, clear the LiteSpeed Cache and any browser cache. A cached HTML copy will keep serving the old insecure URLs long after you have fixed the source, and it will look like your fix did not work.
Free certificates renew automatically, provided the domain still resolves to Hostinger and the validation path is unobstructed. There is nothing to buy and nothing to schedule.
The failure mode to be aware of is self-inflicted: changing DNS records, moving the domain to another server, or putting a proxy in front of it can interrupt renewal. If a certificate expires unexpectedly, the sequence is the same as a first issuance — confirm DNS, remove the obstruction, then reissue.
For sites that take payments or collect personal data, check the certificate status once a quarter. It takes ten seconds and it removes an entire category of outage from your calendar.
If SSL is working, the remaining setup is email and backups. Mailboxes are included on every plan — 2 per site on Premium, 5 on Unlimited and 10 on Cloud — and the email setup guide covers connecting them and getting SPF and DKIM right. If you are still choosing a plan, note that SSL is identical across every tier, so it should not influence the decision at all. The pricing page and the plan finder are the places to look instead.
Confirm the domain resolves to Hostinger
SSL issuance requires the certificate authority to reach your domain on Hostinger's server. Check with dig or nslookup that the domain returns your Hostinger IP before you look at anything else, because a pending certificate is almost always a DNS problem.
Find the SSL section in hPanel
Open Websites, select the site, and open the SSL section. It shows the current certificate status for each domain and subdomain attached to that site, and offers the install action if a certificate has not been issued automatically.
Install the certificate if it was not issued automatically
On most setups the free certificate is issued without you doing anything once DNS is correct. If the status is not active, use the install or refresh action in that section and allow a few minutes for validation to complete.
Force HTTPS with the hPanel toggle
Enable the force HTTPS option for the domain. This adds a server-level redirect so plain HTTP requests are sent to the secure version, which is the simplest way to cover every URL on the site.
Add an .htaccess redirect if you need finer control
In the file manager, edit the .htaccess file in public_html and add a RewriteEngine block that redirects non-HTTPS requests to HTTPS with a 301. This is useful when you want to exclude a path or handle a proxy in front of the server.
Fix mixed content
Load the site and open the browser console. Any warnings about insecure resources mean a stylesheet, script or image is still being loaded over http. Update the URL in the theme, plugin or database entry that references it, then clear the cache.
Update the WordPress site URL
In WordPress, open Settings, General, and confirm both the WordPress Address and Site Address begin with https. If they still say http, WordPress will keep generating insecure links even though the certificate is valid.
Verify renewal is automatic
Free SSL certificates renew on their own as long as the domain keeps resolving to Hostinger and the DNS records the validation depends on are untouched. Dipping into the DNS zone mid-renewal is the usual cause of a lapse.
Daniel Okafor
Technical editor
Daniel is a systems engineer who runs a fleet of KVM boxes for client projects. He writes our VPS, performance and troubleshooting guides.
Last updated
HostScope tests hosting hands-on and publishes the renewal prices, resource limits and limitations that most review sites leave out. Read ourtesting methodologyandeditorial policy.
Two ways to connect a domain to Hostinger hosting: change the nameservers, or keep your DNS and point an A record instead. Plus how to verify it worked.
The one-click WordPress installer on Hostinger, the fields it asks for, and the eight hardening steps that should follow — permalinks, SSL, caching and backups.
A menu-by-menu tour of Hostinger's hPanel, plus the seven things a beginner should set up in the first hour — domain, WordPress, SSL, email and backups.
Create a Hostinger mailbox, connect it to Gmail, Outlook or Apple Mail over IMAP, and fix deliverability with SPF, DKIM and DMARC records.