DNS translates human‑friendly hostnames into IP addresses (and vice versa), ensuring seamless communication over IP networks. It operates at the Application Layer (OSI Layer 7) and uses UDP 53 by default, falling back to TCP 53 for larger responses or zone transfers.


1- DNS Record Types

https://www.youtube.com/watch?v=HnUDtycXSNE

Each record consists of: Name, Type, Data, and TTL (Time to Live).

Record stores administrative information about a DNS zone

Used for metadata and verification (e.g., SPF, DKIM, DMARC).

"v=spf1 include:_spf.example.com ~all"
"v=DKIM1; k=rsa; p=PUBLIC_KEY"
"v=DMARC1; p=reject; rua=mailto:[email protected]"

SRV (Service Location)