Copyright (c) 2026 MindMesh Academy. All rights reserved. This content is proprietary and may not be reproduced or distributed without permission.

4.4.2. DNS Architecture and Records

DNS (Domain Name System): Translates domain names to IP addresses (forward lookup) and IPs to names (reverse lookup).

DNS Record Types:
TypePurposeExample
AName → IPv4www.example.com → 192.0.2.1
AAAAName → IPv6www.example.com → 2001:db8::1
CNAMEAlias → canonical namewww → webserver.example.com
MXMail server for domainexample.com → mail.example.com (priority 10)
TXTArbitrary textSPF records, domain verification
NSName server for domainexample.com → ns1.example.com
PTRIP → name (reverse)1.2.0.192.in-addr.arpa → www.example.com
SOAZone authorityPrimary server, admin email, serial
SRVService location_ldap._tcp.example.com → ldap.example.com:389
DNS Security:
  • DNSSEC: Digitally signs DNS records to prevent tampering
  • DoH (DNS over HTTPS): Encrypts DNS queries over HTTPS (port 443)
  • DoT (DNS over TLS): Encrypts DNS queries over TLS (port 853)
DNS Server Types:
  • Authoritative: Has definitive answers for a zone
  • Recursive/Resolver: Queries other servers to find answers
  • Primary (Master): Original copy of zone data
  • Secondary (Slave): Read-only copy, receives zone transfers from primary

Hosts File: Local file mapping names to IPs, checked before DNS. Location: /etc/hosts (Linux/Mac) or C:\Windows\System32\drivers\etc\hosts (Windows).

Alvin Varughese
Written byAlvin Varughese
Founder15 professional certifications