NETWORKING / A CONCEPT NOTE

DNS

how names become IP addresses

~60 sec read

Overview · mechanism
pitfall · examples

01 / THE SHORT VERSION

The idea in a few sentences.

The internet's phone book: you ask for supraj.dev, a chain of servers answers with 76.76.21.21. Everything else is caching and who gets asked.

02 / FOLLOW THE MECHANISM

How a lookup flows

  1. Your machine

    checks its own cache first — most lookups end here.

  2. Resolver

    (your ISP or 1.1.1.1) takes the question and does the legwork.

  3. Root → TLD

    servers point it toward whoever owns .dev.

  4. Authoritative server

    gives the real answer, cached for its TTL.

04 / COMMAND NOTES

Read the command, then the result.

Inspect the flags and arguments before trying an example. Snippets can need local setup, replacement values, or resources in your own environment.

EXAMPLE 01 · REFERENCE

just the answer, no noise

dig +short supraj.dev

EXAMPLE 02 · REFERENCE

watch the full chain above, live

dig +trace supraj.dev

Explore command anatomy in the CLI lab