Skip to main content
⚡ OpenDevDocs
Networking
networkingnetworkingCore ConceptBeginner

DNS Architecture & Record Types

Master the Domain Name System (DNS), hierarchical resolution flow, TTL caching, and essential record types (A, AAAA, CNAME, MX, TXT).

Verified: 2026-09-30
Platforms:
webnodelinux
#networking#dns#domain#cname#routing

What is DNS?

The Domain Name System (DNS) is the phonebook of the Internet. It translates human-friendly domain names (e.g. docs.tashanto.com) into machine-routable IP addresses (e.g. 76.76.21.21).


The 4-Stage DNS Resolution Process

Client (Browser) ──> [ 1. Local / ISP Recursive Resolver ] (e.g. 1.1.1.1 or 8.8.8.8)
                              │
                              ├──> [ 2. Root Nameserver (.) ] ──> Points to .com TLD
                              │
                              ├──> [ 3. TLD Nameserver (.com) ] ──> Points to tashanto.com NS
                              │
                              └──> [ 4. Authoritative Nameserver ] (Cloudflare / Route53)
                                            │
                                            ▼ Returns A Record: 76.76.21.21

Essential DNS Record Types

Record TypeNamePurposeExample
AAddress RecordMaps a domain directly to an IPv4 addressdocs.tashanto.com -> 76.76.21.21
AAAAIPv6 Address RecordMaps a domain to an IPv6 addressexample.com -> 2606:4700::6810
CNAMECanonical NameMaps an alias subdomain to another domain namewww.example.com -> example.com
MXMail ExchangeDirects incoming emails to mail serversexample.com -> mail.protonmail.ch (Priority 10)
TXTText RecordArbitrary text used for domain verification, SPF, DKIM, and SSL certificates"v=spf1 include:_spf.google.com ~all"
NSName ServerDelegates a DNS zone to authoritative nameserversns1.cloudflare.com
PTRPointer RecordReverse DNS lookup (Maps IP address back to domain)1.0.0.127.in-addr.arpa -> localhost

Time-To-Live (TTL) & Propagation

  • TTL (Time-To-Live): Number of seconds recursive resolvers are permitted to cache a DNS response before querying authoritative nameservers again.
  • Setting a low TTL (e.g. 300 seconds = 5 minutes) before migrating server infrastructure ensures DNS changes take effect quickly across global caches.

On this page