Skip to main content
⚡ OpenDevDocs
Deployment
devopsdeploymentGuideBeginner

Domains, DNS Records & Propagation

Complete guide to domain name resolution, apex domains vs subdomains, A, AAAA, CNAME, and ALIAS records, TTL caching, and DNS propagation.

Verified: 2026-09-30
Tested on:dns standard
Platforms:
all
#dns#domains#networking#deployment

The Domain Name System (DNS) maps human-readable domain names (e.g. docs.tashanto.com) to machine-routable IP addresses (e.g. 76.76.21.21).


Domain Hierarchy

        .              (Root Domain)
        │
       com             (Top-Level Domain - TLD)
        │
    tashanto           (Second-Level Domain / Apex / Root)
        │
      docs             (Subdomain)
  • Apex / Naked / Root Domain: tashanto.com (domain without www or subdomains).
  • Subdomain: docs.tashanto.com, api.tashanto.com.

Common DNS Record Types for Deployment

Record TypePurposeExample HostExample Target / Value
APoints a hostname directly to an IPv4 address@ (or example.com)198.51.100.42
AAAAPoints a hostname directly to an IPv6 address@2001:0db8:85a3::8a2e:0370:7334
CNAMEAliases one hostname to another canonical domaindocscname.vercel-dns.com
ALIAS / ANAMEPseudo-CNAME at the root apex domain level@cname.vercel-dns.com
TXTArbitrary text used for domain verification and SPF/DKIM@v=spf1 include:_spf.google.com ~all
MXDirects incoming emails to mail servers@aspmx.l.google.com (Priority 10)

[!WARNING] The DNS RFC standard prohibits creating a CNAME record on the root apex domain (@ or example.com). If deploying your root apex domain to PaaS/Vercel/Cloudflare, use an ALIAS record or Cloudflare CNAME flattening.


Time-To-Live (TTL) & DNS Propagation

TTL (Time To Live) is the number of seconds intermediate DNS resolvers and ISPs cache a DNS record before querying the authoritative nameserver again.

Planning a Migration:

  • Normal Operations: Set TTL to 3600 (1 hour) or 86400 (24 hours) for performance.
  • 24–48 Hours Before Server Migration: Lower TTL to 300 (5 minutes) so changes propagate worldwide within minutes when switching IP addresses.

On this page