Learn

GuideHosting & deploymentCompanion to How websites work

Domains, DNS, and deployment: taking a website live

Your bot has shown you a working website preview. How does it become the site people reach at your address?

There are several separate jobs. They may appear in one provider's dashboard, but understanding the jobs makes mistakes easier to spot.

Four things that often get confused

TermWhat it does
Domain registrationGives you the right to use a domain name while its registration remains valid.
DNSPublishes records that help direct requests for your domain and its services.
NameserversServers that publish authoritative DNS answers for the domain.
HostingServes the website's files and, where needed, runs application code.

A registrar manages your domain registration. Its settings commonly let you choose which nameservers handle DNS. Changing those nameservers changes where the domain's DNS is managed; it does not upload your website. [1]

An A record maps a name to an IPv4 address. An AAAA record maps it to an IPv6 address. A CNAME record makes one name an alias of another. Use the exact record type and target your hosting provider specifies. Other records can serve different jobs, including email. [2]

A registrar manages domain registration and nameserver selection. Authoritative nameservers publish DNS records, which help direct website requests to the host. Preview, staging, and production have different purposes.

Swipe sideways to see the whole diagram, or open it full size.

One website, several responsibilities. Companies and responsibilities are different concepts. One provider can handle several roles, or the roles can be split across providers.

Figure explanation: Four boxes form a responsibility map. Registrar manages domain registration. A nameserver-selection arrow leads to authoritative nameservers, which publish DNS answers. A publish-records arrow leads to DNS records, which describe service destinations. A website-destination arrow leads to the website host, which serves the deployed site. Side notes explain that changing nameservers does not upload a site and that some records serve email or other purposes. The diagram is not a complete DNS lookup sequence. A table below distinguishes preview, for inspecting a version and checking link access; staging, for realistic testing and checking separation of data and services; and production, for real users and checking the version and destination.

Sources

  1. Cloudflare, DNS NS record and Update nameservers. Checked 2026-09-25.
  2. Cloudflare, DNS record types. Checked 2026-09-25.
  3. Cloudflare, Preview deployments. A provider-specific example, not a promise about every host. Checked 2026-09-25.
  4. MDN, Transport Layer Security. Checked 2026-09-25.
  5. Cloudflare, General DNS issues. Checked 2026-09-25.

Cookie preferences