
To point a domain to hosting, log in to the company where you registered your domain and replace its nameservers with your host’s nameservers, or add an A record that points to your host’s server IP address. The change usually takes effect within a few hours, though it can take up to 48 hours to reach every network.
This guide explains how to point a domain to hosting step by step, at any registrar. You will learn when to use nameservers versus A records, the exact HostRiser settings, how long propagation really takes, how to check your progress with free lookup tools, and how to fix the usual snags with email, www and SSL.
New to how domains and hosting relate? Read domain name vs web hosting first, then come back here.
Nameservers vs A records: which should you use?
There are two ways to connect a domain to hosting. Both work. The right one depends on who you want to manage your DNS.
| Change nameservers | Add an A record | |
|---|---|---|
| What changes | Who manages all DNS for the domain | Where one name (such as yourdomain.com) points |
| DNS managed by | Your hosting provider | Your registrar or current DNS provider |
| Email, www, SSL records | Set up by the host automatically | You add or keep them yourself |
| Difficulty | Easiest | Moderate |
| Best for | Most websites, especially new ones | Domains with email or services set up elsewhere |
Our recommendation: if your website and email will both be hosted with the same host, change the nameservers. If your email lives with a separate provider and you are comfortable managing records, an A record is a valid choice.
How to point a domain to hosting using nameservers
Every registrar’s dashboard looks a little different, but the steps are the same everywhere.
- Write down your current DNS records. Before you change anything, note any MX, TXT (SPF, DKIM, verification) and CNAME records. You may need them later.
- Log in to your domain registrar. This is the company you pay for the domain, not necessarily your old host.
- Open your domain’s settings. Look for a section called Nameservers, DNS or Domain Management.
- Choose custom nameservers. The option may be labeled “Use custom nameservers” or “Change nameservers.”
- Replace the existing entries with your host’s nameservers. Remove any old ones so only the new ones remain.
- Save. Some registrars ask you to confirm by email.
- Add the domain in your hosting account if you have not already, so the server knows to answer for it.
HostRiser nameservers
For HostRiser hosting, enter these two nameservers exactly:
ns1.hostriser.comns2.hostriser.com
Once they are active, HostRiser manages the DNS records for your website, www and email automatically. HostRiser does not sell domains, so this step always happens at your own registrar.
How to point a domain using an A record
Use this method if you want to keep DNS where it is.
- Get your server’s IP address from your hosting provider.
- Log in to wherever your DNS is currently managed, usually your registrar.
- Find the DNS records or zone editor.
- Edit the A record for the root domain (often shown as
@) and set its value to your host’s IP address. - Point
wwwat the same place, either with its own A record or a CNAME record whose value is your root domain. - Delete any conflicting A or AAAA records for the same names, then save.
Leave your MX records alone if your email is hosted elsewhere. If your email will move to your new host, update the MX records too.
How long does DNS propagation take?
“Propagation” is the time it takes for networks around the world to forget the old DNS information and fetch the new one. DNS answers are cached for a period called TTL (time to live), set on each record.
- Nameserver changes: often visible within a few hours, but allow up to 48 hours. The domain’s top-level registry caches nameserver information for longer than most records.
- A, CNAME and MX record changes: usually follow the record’s TTL, which is commonly between a few minutes and a few hours.
During propagation, some visitors may see your old site and others the new one. That is normal. If you are moving an existing site, keep the old hosting active until the switch is complete so nobody sees an error. Our guide to migrating a website to a new host covers the full process.
Tip: if you plan to change A records on a live site, lower the TTL a day ahead. The switch then spreads faster.
How to check if your domain is pointing correctly
You do not have to wait and guess. Use these checks:
- Online DNS lookup tools. Free propagation checkers query DNS servers in many countries at once. Search for “DNS propagation checker,” enter your domain and select the NS or A record type.
- Your computer’s command line. On Windows, macOS or Linux run
nslookup -type=ns yourdomain.comto see nameservers, ornslookup yourdomain.comto see the IP address. On macOS and Linux you can also usedig NS yourdomain.com. - A private browser window. This avoids some cached data, though your computer and router may still remember old results for a while.
When the lookups show ns1.hostriser.com and ns2.hostriser.com (or your host’s IP for A records) from most locations, you are done.
Troubleshooting common problems
Email stopped working after the change
This is the most common issue. If you used email with a third-party provider, its MX records lived at your old DNS provider. After a nameserver change, those records must exist at the new provider. Add the MX, SPF and any DKIM records your email provider gives you in your new DNS zone. If your mail is hosted with HostRiser, the records are created for you, and your mail settings are IMAP mail.yourdomain.com port 993 SSL and SMTP port 465 SSL.
The site works without www but not with it (or the reverse)
One of the two names has no record. Make sure both the root domain and www point to your hosting, with an A record each or a CNAME for www.
Browser shows a “Not secure” or certificate warning
SSL certificates can only be issued once the domain points to the server, because the certificate authority checks that you control it. HostRiser issues free Let’s Encrypt SSL automatically and checks hourly, so the warning usually clears soon after DNS updates. Read more in what is an SSL certificate.
Nothing has changed after 48 hours
- Check for typos in the nameservers, such as a missing digit or extra dot.
- Confirm you changed the nameservers, not just a record in a zone that is no longer in use.
- If DNSSEC is switched on at your registrar, old security records can block the new nameservers. Turn DNSSEC off at the registrar before changing nameservers.
- Make sure the domain is not expired or locked for a billing issue.
How HostRiser makes this easier
When you host with HostRiser, pointing your domain is a single change: set ns1.hostriser.com and ns2.hostriser.com at your registrar, and we create the records for your website, www and email, then issue your free SSL as soon as DNS resolves. If you are moving from another host, our team handles the migration for free, usually within 1 to 2 business days, and helps time the DNS switch for zero downtime. Learn more about free migration or browse the hosting FAQ.
Frequently asked questions
How long does it take for a domain to point to new hosting?
Often a few hours, but allow up to 48 hours for a nameserver change to be seen everywhere. Record changes inside an existing DNS zone usually update faster, depending on the record’s TTL.
Should I change nameservers or use an A record?
Change nameservers if you want your host to manage all DNS for you, which is simplest for most people. Use an A record if you need to keep DNS at your registrar or another DNS provider, for example because email or other services are set up there.
Will changing nameservers break my email?
It can if your email is hosted elsewhere and the MX records are not recreated at the new DNS provider. Copy your existing MX, SPF and other email records before you switch, then add them at the new provider.
What are HostRiser’s nameservers?
HostRiser’s nameservers are ns1.hostriser.com and ns2.hostriser.com. Enter both at your domain registrar, replacing any existing nameservers.
Why does my site show a security warning after pointing the domain?
The SSL certificate can only be issued once your domain points to the new server. At HostRiser, SSL is checked hourly and issued automatically, so the warning normally clears soon after DNS has updated.
Ready to connect your domain? Pick a HostRiser plan and point your nameservers today.
Last updated October 12, 2026


