Skip to content
Daleel Web

Domains & DNS

How to point your domain to your hosting (DNS records explained)

Nameservers or A records? A plain-English walkthrough of connecting a domain to your web host, how long DNS changes take, and how to check they worked.

By Daleel Web Editorial TeamPublished 1 min read
Two boxes joined by a dotted arrow, showing a domain connecting to a server

Buying a domain and buying hosting are often two separate purchases. To make your site appear when someone types your domain, you tell the domain where the hosting is. That is done with DNS.

Two ways to connect them

Option 1: Change the nameservers

Your host gives you two or more nameservers, for example ns1.example-host.com and ns2.example-host.com. You paste them into your registrar's control panel. From then on, your host manages all DNS records for the domain.

Choose this when you want the simplest setup and are happy to manage DNS at your host.

Option 2: Add records at your registrar

You keep DNS at the registrar (or a DNS provider such as Cloudflare) and add records that point to your host:

RecordNameValue
A@Your server's IPv4 address
AAAA@Your server's IPv6 address, if provided
CNAMEwwwYour root domain

Choose this when your email or other services already depend on records at your current DNS provider.

How long does it take?

Most changes are visible within an hour. Some networks cache old answers for up to 48 hours, depending on the record's TTL. Lowering the TTL a day before a planned move makes the switch faster.

How to check it worked

  • Open your domain in a private browser window.
  • Use a public DNS lookup tool and confirm the A record shows your host's IP.
  • On a computer, run:
dig +short example.com A
dig +short www.example.com

When both return your host's address, issue the SSL certificate from your hosting panel so the site loads over HTTPS.

Sources & references

  1. Cloudflare Learning Center: What is DNS?

Domains & DNS

How to choose a domain name you won't regret

Short, spellable, and free of trademark trouble. Seven practical rules for picking a domain name, plus how to choose between .com and country domains.

2 min read