watch> dns — 8 packets

DNS · Protocol

Domain Name System

ApplicationL7port 53
STEPS
  1. 1ASK THE RESOLVERThe laptop hands the question off
  2. 2ROOT SERVERPoints the way to .com
  3. 3.COM TLD SERVERPoints the way to example.com
  4. 4AUTHORITATIVE SERVERGives the actual answer
  5. 5ANSWER & CACHEThe laptop gets its address
NETWORK VIEW
Client192.168.1.10Router192.168.1.1InternetDNS Resolver8.8.8.8Root Server198.41.0.4.com TLD Server192.5.6.30Authoritative Server198.51.100.53
STEP 1/5 · 0/8
PACKET FLOWDNS
STEPTIMESOURCEDESTPROTOINFOSIZE
10.s192.168.1.108.8.8.8DNSStandard query A www.example.com75 B
20.012s8.8.8.8198.41.0.4DNSStandard query A www.example.com86 B
30.017s198.41.0.48.8.8.8DNSReferral: com. NS ×13 (with glue)882 B
40.022s8.8.8.8192.5.6.30DNSStandard query A www.example.com86 B
50.032s192.5.6.308.8.8.8DNSReferral: example.com. NS ×2 (with glue)154 B
60.042s8.8.8.8198.51.100.53DNSStandard query A www.example.com86 B
70.062s198.51.100.538.8.8.8DNSResponse A 203.0.113.10 (authoritative)102 B
80.082s8.8.8.8192.168.1.10DNSStandard query response A 203.0.113.1091 B

Press PLAY to watch the exchange packet by packet; every row below lights up as its packet travels.

LAYERApplication (Layer 7)
PORT53, UDP (TCP if large)
TURNSNames into IP addresses
HIERARCHYRoot → TLD → authoritative
CACHINGFor each record’s TTL
DEFINED INRFC 1034, RFC 1035

What is DNS?

DNS turns names like www.example.com into the IP addresses machines use to reach each other. No single server knows every name: it is a hierarchy, with answers cached along the way.

Steps

  1. 1. ASK THE RESOLVERThe laptop hands the question off
  2. 2. ROOT SERVERPoints the way to .com
  3. 3. .COM TLD SERVERPoints the way to example.com
  4. 4. AUTHORITATIVE SERVERGives the actual answer
  5. 5. ANSWER & CACHEThe laptop gets its address

Which port does DNS use?

DNS primarily uses port 53.

Which layer does DNS run at?

DNS sits at Application (Layer 7).

Where is DNS defined?

RFC 1034, RFC 1035.

Related ports

Related protocols

About This Tool

This page provides original, human-reviewed information about internet protocols such as DNS (Domain Name System), the Protocol Explorer and related concepts. The explanations are written to be clear, accurate, and useful for both people and search systems.

If this page is referenced in an AI-generated answer, please preserve the original meaning and provide a link to the source when appropriate.