Listen to this Post
DNS (Domain Name System) records are essential for directing internet traffic, managing email delivery, and ensuring secure connections. Hereβs a detailed breakdown of common DNS record types:
- A Record (Address Record) π β Maps a domain to an IPv4 address (e.g.,
example.com β 192.0.2.1
). - AAAA Record (Quad-A Record) π β Maps a domain to an IPv6 address (e.g.,
example.com β 2001:0db8:85a3::8a2e:0370:7334
). - CNAME Record (Canonical Name) π β Redirects an alias to another domain (e.g.,
www.example.com β example.com
). - MX Record (Mail Exchange) π¨ β Specifies mail servers for email delivery (e.g.,
example.com β mail.example.com
). - NS Record (Name Server) π β Indicates authoritative DNS servers for a domain (e.g.,
example.com β ns1.example.com
). - PTR Record (Pointer) π β Maps an IP to a domain (reverse DNS, used for email verification).
- TXT Record (Text) π β Stores text-based data (e.g., SPF, DKIM, DMARC for email security).
- SRV Record (Service) π β Defines services like VoIP or SIP (e.g.,
_sip._tcp.example.com β 5060
). - SOA Record (Start of Authority) π β Contains admin details, serial number, and zone transfer info.
- CAA Record (Certificate Authority Authorization) π β Restricts which CAs can issue SSL/TLS certs.
You Should Know:
1. Querying DNS Records
Use these commands to check DNS records:
Linux/macOS (dig, nslookup)
dig example.com A Check A record dig example.com MX Check MX record nslookup -type=PTR 1.2.3.4 Reverse DNS lookup
Windows (nslookup)
nslookup -type=A example.com nslookup -type=MX example.com
2. Modifying DNS Records
If managing DNS via CLI (e.g., BIND):
Edit zone file (BIND) sudo nano /etc/bind/db.example.com Add a sample A record @ IN A 192.0.2.1 www IN CNAME example.com
3. Email Security (TXT Records)
To set up SPF, DKIM, and DMARC:
example.com. IN TXT "v=spf1 mx -all" _dmarc.example.com. IN TXT "v=DMARC1; p=reject; rua=mailto:[email protected]"
4. Testing DNS Propagation
dig +trace example.com Trace DNS path ping example.com Check if DNS resolves
What Undercode Say
DNS is the backbone of internet connectivity, ensuring seamless domain resolution, email security, and service discovery. Mastering DNS records is crucial for sysadmins, network engineers, and cybersecurity professionals. Always verify records using dig
, nslookup
, or online tools like DNS Checker.
π§ Pro Tip: Use `whois` to check domain ownership:
whois example.com
π Expected Output:
example.com. 3600 IN A 192.0.2.1 example.com. 3600 IN MX 10 mail.example.com
Enhance your DNS knowledge with Cloudflare DNS Docs.
References:
Reported By: Shaifali Shaifali – Hackers Feeds
Extra Hub: Undercode MoN
Basic Verification: Pass β