Skip to content

Tutorials Domains Beginner2 min read

How to Point a Domain to Your Hosting

Connect a domain to your website using nameservers or DNS records. Step-by-step instructions, how to check your work, and how long changes take.

By ZSOLNET Editorial Team Updated

Key takeaways

  • There are two ways to connect a domain — change its nameservers, or keep your DNS provider and edit individual records.
  • Nameserver changes move all DNS to the new provider; record changes affect only the records you edit.
  • Changes appear as cached answers expire, usually within the old TTL; nameserver changes can take up to 48 hours.

Registering a domain and buying hosting are two separate steps. To make your website load at your domain, you need to tell the internet where that hosting lives. There are two ways to do it.

Option 1: Change the nameservers

Nameservers are the servers that hold your domain’s DNS records. Pointing your domain to your host’s nameservers hands all DNS management to the host.

  1. Find the nameservers in your hosting welcome email or client area. They usually look like ns1.provider.net and ns2.provider.net.
  2. Open the domain’s management page at your registrar and choose Nameservers.
  3. Replace the existing nameservers with your host’s, then save.
client.zsolnet.com › Domains › Manage

Nameservers — mybrand.com

Change Nameservers1
1 In your client area, open the domain, choose Nameservers, enter the ones from your hosting welcome email and save.

Option 2: Edit DNS records

Keep your current DNS provider and change only the records your website uses:

RecordHost / nameValue
A@ (the bare domain)Your server’s IPv4 address
AAAA@Your server’s IPv6 address (if provided)
CNAMEwwwYour bare domain, e.g. example.com
  1. Find your server’s IP address in your hosting client area.
  2. In your DNS provider’s dashboard, edit (or create) the A record for @ with that address.
  3. Point www at the bare domain with a CNAME, or add a second A record for www.
yourdomain.com:2083 › Zone Editor

DNS records for mybrand.com

+ Add Record
TypeNameRecordTTL
Amybrand.com.203.0.113.103600 2
CNAMEwwwmybrand.com.3600
MXmybrand.com.10 mail.mybrand.com.3600
2 Pointing with records instead: set the A record for the domain to your hosting IP and make www a CNAME of the root domain.

Check that it worked

Query your domain directly to see the new values:

# Which nameservers are now delegated?
dig NS example.com +short

# What address does the domain resolve to?
dig A example.com +short

Or use our DNS lookup tool to check the records from your browser, and the propagation checker to compare several public resolvers.

How long does it take?

Record changes appear as resolvers’ cached answers expire — usually within the old record’s TTL. Nameserver changes involve the registry’s delegation, which commonly has a TTL of up to 48 hours, so allow up to two days before investigating.

After the domain resolves

Once the domain points at your hosting, issue an SSL certificate (included free with ZSOLNET hosting) so the site loads over HTTPS, and confirm that http:// redirects to https://.

Frequently asked questions

Should I change nameservers or DNS records?

Change nameservers if you want your hosting provider to manage all DNS. Edit records if you want to keep DNS where it is — for example because email or other services already depend on it.

Why does my site still show the old host?

Resolvers may still have the old answer cached. Check the authoritative nameservers directly, then wait for the previous TTL to expire.

Share X LinkedIn Facebook

Log in to your account

Manage your domains, hosting and invoices in one place.

Secure connection straight to the ZSOLNET client area.

No account yet?