DNS Flashcards
Why should you never run an authoritative and recursive server on the same system
Running authoritative and recursive DNS on the same system is insecure because recursive servers handle user queries and can have their cache poisoned, spreading malicious data. Combining it with authoritative functions risks exposing sensitive data about internal networks and enables attackers to exploit the system for amplification attacks. Separation isolates these roles, reducing vulnerabilities and maintaining security.
What is the main role of DNS
DNS maps domain names to IP addresses and IP addresses to domain names
Why is DNS difficult to secure
- DNS lacks built-in security, making it vulnerable to attacks like spoofing.
- Its global infrastructure is highly complex and difficult to secure consistently.
- Political and administrative control adds challenges to improving DNS security.
What is DNS caching and why is it important
DNS caching stores query results temporarily to reduce lookup times and improve performance
What is cache poisoning in DNS
It misleads DNS queries to redirect users to malicious websites
Why are certificates important in DNS
They prevent attacks like cache poisoning by verifying authenticity
What is the maximum size for DNS names
255 bytes with 63 bytes per label
What is a DNS zone
It is a group of resource records served from one primary nameserver
What are A and AAAA records in DNS
A records map to IPv4 addresses while AAAA records map to IPv6 addresses
What does TTL stand for in DNS
Time to Live which defines how long a record can be cached
What is the Kaminsky Attack
A DNS vulnerability exploiting predictable transaction IDs to poison caches.
Process;
The Kaminsky Attack works by guessing predictable DNS transaction IDs to send fake responses, which the resolver accepts and caches, redirecting users to malicious sites.
What are recursive servers in DNS
Recursive servers in DNS resolve user queries by contacting other DNS servers as needed to find the complete answer.
What are authoritative servers in DNS
Authoritative DNS servers store and provide definitive answers for specific DNS zones they are configured to manage, delivering accurate resource record data without needing to query other servers.
What are glue records in DNS
They are A or AAAA records for nameservers to prevent resolution loops
What is the function of a DNS resolver
It is a client that sends DNS queries and processes responses
What is EDNS0 in DNS
An extension mechanism for DNS with support for larger payloads and cookies
What is DNS over HTTPS DoH
It encrypts DNS queries using HTTPS for privacy
Why is DoH controversial
It bypasses traditional DNS controls and creates policy enforcement challenges
What are Response Policy Zones RPZ in DNS
They allow policy-based filtering of DNS responses
What is reverse mapping in DNS
It resolves IP addresses back to domain names using in-addr.arpa or ip6.arpa
Why are primary and secondary nameservers used in DNS
For redundancy load balancing and reliability
What is a zone file in DNS
It contains records for a DNS zone
What is label compression in DNS
It reduces message size by reusing labels in DNS packets
What is the role of mail exchangers MX in DNS
They define mail servers for a domain
What is the difference between iterative and recursive DNS queries
Iterative queries ask one server at a time while recursive queries resolve completely on behalf of the client
Why are DNS clients considered problematic
They are often unreliable inconsistent and poorly implemented
What is the purpose of DNSSEC
To sign zones providing evidence that packets have not been tampered with
What is a delegation in DNS
It assigns authority for a subdomain to another nameserver