Skip to content

DNS 101

Published: at 11:22 AMSuggest Changes

What is DNS?

DNS Access

Most Common DNS Implementation

DNS Basics

DNS Name Space

Fully Qualified Domain Name (FQDN)

Top-Level Domains (TLDs)

TLD Restrictions

DNS Delegation

Zones

Name Servers

Zone Transfer

Name Caching

DNS Message Format

Header (12-byte fixed)

Question Section

Resource Records (RR) in DNS

Common RR Types:

Pointer Queries (Reverse DNS Lookup)

Hostname Spoofing Check

Caching in DNS

UDP vs TCP in DNS

DNS Query/Response Workflow

  1. Client requests IP address from DNS resolver (A record query).
  2. Root server responds with the name servers for the domain.
  3. Client sends A record query to the domain’s name server.
  4. Name server responds with the IP address.
  5. Client establishes a TCP connection to the server.
  6. Server checks the client’s IP address using a PTR query.
  7. Root server responds with name servers for the client’s domain.
  8. Server sends PTR query to the client’s name server.
  9. Client’s name server responds with the hostname (FQDN).
  10. Server queries the client’s name server for the IP address (A record).
  11. Server verifies the response matches the incoming connection’s IP address.

Previous Post
SSRF to Pwned
Next Post
Getting to know about Cloudtrial