By Fatskills Exam Guides Team — the exam nerds behind 28,500+ quizzes and 2.1M practice questions across 500+ global exams.
The Domain Name System (DNS) is the internet’s phonebook—translating human-readable domain names (e.g., google.com) into machine-readable IP addresses (e.g., 172.217.3.110). Without DNS, the internet as we know it wouldn’t function. However, DNS was designed in the 1980s with no built-in security, making it a prime target for attacks like cache poisoning, spoofing, and DDoS amplification. A real-world example: In 2016, the Mirai botnet exploited vulnerable DNS servers to launch a 620 Gbps DDoS attack against Dyn, taking down major sites like Twitter, Netflix, and Reddit. DNSSEC (DNS Security Extensions) was created to add cryptographic integrity to DNS responses, ensuring users reach the correct website and not a malicious imposter.
google.com
172.217.3.110
DNS (Domain Name System): Hierarchical, distributed database that resolves domain names to IP addresses. Operates on UDP port 53 (mostly) and TCP port 53 (for large responses, e.g., zone transfers). Standards: IETF RFCs (e.g., RFC 1035 for DNS, RFC 4033-4035 for DNSSEC).
DNSSEC (DNS Security Extensions): A suite of IETF extensions that digitally signs DNS records to prevent spoofing and tampering. Uses public-key cryptography (RSA/ECDSA) to ensure data integrity and authenticity. Key Tools: dig +dnssec, dnssec-keygen, BIND (DNS server software).
dig +dnssec
dnssec-keygen
BIND
Zone File: A text file containing DNS records for a domain (e.g., A, AAAA, MX, NS records). Stored on authoritative DNS servers. Example: example.com. IN A 192.0.2.1 example.com. IN MX 10 mail.example.com.
example.com. IN A 192.0.2.1 example.com. IN MX 10 mail.example.com.
Authoritative DNS Server: The "source of truth" for a domain’s DNS records. Only it can provide signed (DNSSEC) responses for its zone. Example: Cloudflare’s 1.1.1.1 is a recursive resolver, not authoritative for google.com.
1.1.1.1
Recursive DNS Resolver: A server (e.g., ISP’s DNS, Google’s 8.8.8.8) that queries authoritative servers on behalf of clients and caches responses. Security Risk: Vulnerable to cache poisoning if not secured.
8.8.8.8
DNS Cache Poisoning (Kaminsky Attack): An attack where an attacker injects fake DNS records into a resolver’s cache, redirecting users to malicious sites. Example: In 2008, Dan Kaminsky demonstrated how attackers could poison caches by exploiting predictable transaction IDs in DNS queries.
DNS Spoofing (Pharming): Redirecting users to a fake website by forging DNS responses. Unlike phishing (which tricks users into clicking links), pharming automatically redirects victims. Example: Attackers compromise a router’s DNS settings to redirect bankofamerica.com to a fake login page.
bankofamerica.com
DNS Tunneling: Abusing DNS queries to exfiltrate data or bypass firewalls. Attackers encode data in DNS requests (e.g., stolendata.example.com). Detection Tools: dnscat2, iodine, Security Onion (for monitoring unusual DNS traffic).
stolendata.example.com
dnscat2
iodine
Security Onion
DDoS Amplification Attack: Attackers send small DNS queries with a spoofed source IP (the victim’s) to open DNS resolvers, which respond with large replies, overwhelming the victim. Example: A 60-byte query can trigger a 4,000-byte response (amplification factor of ~66x).
RRSIG (Resource Record Signature): A DNSSEC record containing a digital signature for a DNS record set (e.g., all A records for example.com). Proves the record hasn’t been tampered with.
example.com
DS (Delegation Signer) Record: A record in the parent zone (e.g., .com) that points to the public key of a child zone (e.g., example.com). Enables chain of trust in DNSSEC.
.com
NSEC/NSEC3 (Next Secure Record): DNSSEC records that prove a domain doesn’t exist (preventing "zone walking" attacks). NSEC3 uses hashed names for privacy. Example: If nonexistent.example.com is queried, NSEC3 proves it doesn’t exist without revealing other domains.
nonexistent.example.com
DNS over HTTPS (DoH) / DNS over TLS (DoT): Encrypts DNS traffic to prevent eavesdropping and tampering. DoH uses HTTPS (port 443), while DoT uses TLS (port 853). Tools: Cloudflare’s 1.1.1.1, Google’s 8.8.8.8, Firefox (DoH by default).
nmap -sU -p 53 <IP>
dig +short porttest.dns-oarc.net TXT
dig +dnssec example.com
ad
bash dnssec-keygen -a RSASHA256 -b 2048 -n ZONE example.com # KSK (Key Signing Key) dnssec-keygen -a RSASHA256 -b 1024 -n ZONE example.com # ZSK (Zone Signing Key)
bash dnssec-signzone -A -3 $(head -c 1000 /dev/random | sha1sum | cut -b 1-16) -N INCREMENT -o example.com -t example.com.zone
plaintext options { dnssec-validation auto; dnssec-enable yes; };
plaintext server: module-config: "validator iterator"
dig +dnssec sigfail.verteiltesysteme.net
dnssec-keygen -K
Settings > Network Settings > Enable DNS over HTTPS
stubby
dnsdist
1.1.1.1:853
iptables
nftables
A security analyst notices that users are being redirected to a fake banking site when typing mybank.com. The DNS resolver’s cache contains an incorrect A record for mybank.com. Which attack is most likely occurring? A) DNS tunneling B) DNS cache poisoning C) DNS amplification D) DNSSEC validation failure
mybank.com
✅ Correct Answer: B) DNS cache poisoningExplanation: Cache poisoning involves injecting fake DNS records into a resolver’s cache, redirecting users to malicious sites.
An organization wants to ensure that DNS responses are not tampered with in transit. Which of the following provides integrity but not confidentiality? A) DNS over TLS (DoT) B) DNSSEC C) DNS over HTTPS (DoH) D) DNSCrypt
✅ Correct Answer: B) DNSSECExplanation: DNSSEC uses digital signatures to ensure integrity and authenticity, but it does not encrypt DNS traffic (unlike DoT/DoH).
During a penetration test, an attacker encodes stolen data in DNS queries to evil.com. Which technique is being used? A) DNS spoofing B) DNS tunneling C) DNS amplification D) DNSSEC downgrade
evil.com
✅ Correct Answer: B) DNS tunnelingExplanation: DNS tunneling abuses DNS queries to exfiltrate data or bypass firewalls by encoding data in subdomains.
Join 4M+ learners. Unlock unlimited quizzes, wrong-answer tracking, flashcards + reminders, study guides, and 1-on-1 challenges.