Podcast
Questions and Answers
What is the primary function of the DNS in the context of the Internet?
What is the primary function of the DNS in the context of the Internet?
Which of the following is NOT a service provided by DNS?
Which of the following is NOT a service provided by DNS?
What type of attack involves injecting malicious data into a DNS cache?
What type of attack involves injecting malicious data into a DNS cache?
What is the typical format of a DNS message when requesting information?
What is the typical format of a DNS message when requesting information?
Signup and view all the answers
How does DNS caching improve performance?
How does DNS caching improve performance?
Signup and view all the answers
Which component of a DNS structure provides the actual mapping of hostnames to IP addresses?
Which component of a DNS structure provides the actual mapping of hostnames to IP addresses?
Signup and view all the answers
Which query type would a DNS server respond to if it needs to provide an IP address for a given hostname?
Which query type would a DNS server respond to if it needs to provide an IP address for a given hostname?
Signup and view all the answers
What is one primary method to fix DNS cache poisoning?
What is one primary method to fix DNS cache poisoning?
Signup and view all the answers
What is a key step in executing a DNS cache poisoning attack?
What is a key step in executing a DNS cache poisoning attack?
Signup and view all the answers
Which of the following describes a characteristic of Dan Kaminsky's Attack?
Which of the following describes a characteristic of Dan Kaminsky's Attack?
Signup and view all the answers
What does bailiwick checking involve in DNS security?
What does bailiwick checking involve in DNS security?
Signup and view all the answers
What significant event occurred on October 21, 2002, related to DNS?
What significant event occurred on October 21, 2002, related to DNS?
Signup and view all the answers
In the context of a DNS cache poisoning attack, what is the purpose of flooding the target DNS server?
In the context of a DNS cache poisoning attack, what is the purpose of flooding the target DNS server?
Signup and view all the answers
How does DNSChanger malware alter a system's DNS settings?
How does DNSChanger malware alter a system's DNS settings?
Signup and view all the answers
What was the nature of the DDoS attack on Dyn in October 2016?
What was the nature of the DDoS attack on Dyn in October 2016?
Signup and view all the answers
What kind of packets does the attacker send during a DNS flood attack?
What kind of packets does the attacker send during a DNS flood attack?
Signup and view all the answers
What security measure can help prevent DNS cache poisoning by limiting the acceptance of unsolicited records?
What security measure can help prevent DNS cache poisoning by limiting the acceptance of unsolicited records?
Signup and view all the answers
What was a significant defense mechanism introduced following DNS poisoning exploits?
What was a significant defense mechanism introduced following DNS poisoning exploits?
Signup and view all the answers
What is the primary function of the /etc/host.conf file?
What is the primary function of the /etc/host.conf file?
Signup and view all the answers
What command is used to restart the network service after changing network configuration files?
What command is used to restart the network service after changing network configuration files?
Signup and view all the answers
Which of the following describes the role of root servers in the DNS hierarchy?
Which of the following describes the role of root servers in the DNS hierarchy?
Signup and view all the answers
What port does a DNS server listen to for queries?
What port does a DNS server listen to for queries?
Signup and view all the answers
What utility can be used to query DNS nameservers for information?
What utility can be used to query DNS nameservers for information?
Signup and view all the answers
What is the primary purpose of the gethostbyname() function on UNIX-based machines?
What is the primary purpose of the gethostbyname() function on UNIX-based machines?
Signup and view all the answers
What happens if the DNS response is larger than 1024 bytes?
What happens if the DNS response is larger than 1024 bytes?
Signup and view all the answers
Which class of DNS servers provides the IP addresses for authoritative DNS servers?
Which class of DNS servers provides the IP addresses for authoritative DNS servers?
Signup and view all the answers
What happens when a DNS cache is flushed on a system?
What happens when a DNS cache is flushed on a system?
Signup and view all the answers
What type of query is typically sent from a host to the local DNS server?
What type of query is typically sent from a host to the local DNS server?
Signup and view all the answers
Which component of BIND listens for DNS queries?
Which component of BIND listens for DNS queries?
Signup and view all the answers
What is a common vulnerability in earlier versions of BIND related to Transaction IDs?
What is a common vulnerability in earlier versions of BIND related to Transaction IDs?
Signup and view all the answers
What is a primary benefit of DNS caching?
What is a primary benefit of DNS caching?
Signup and view all the answers
What does a resource record (RR) in DNS contain?
What does a resource record (RR) in DNS contain?
Signup and view all the answers
What does a DNS Cache Poisoning Attack involve?
What does a DNS Cache Poisoning Attack involve?
Signup and view all the answers
What does the SOA record stand for in DNS terminology?
What does the SOA record stand for in DNS terminology?
Signup and view all the answers
Which of the following describes the authoritative section of a DNS message?
Which of the following describes the authoritative section of a DNS message?
Signup and view all the answers
What are the roles of local DNS servers provided by ISPs?
What are the roles of local DNS servers provided by ISPs?
Signup and view all the answers
Which command is used to view and manage the root server IP addresses?
Which command is used to view and manage the root server IP addresses?
Signup and view all the answers
What is the purpose of the DNS TTL (Time To Live)?
What is the purpose of the DNS TTL (Time To Live)?
Signup and view all the answers
What does the 'TTL' field in a resource record signify?
What does the 'TTL' field in a resource record signify?
Signup and view all the answers
How does a registrar enter records into the DNS database?
How does a registrar enter records into the DNS database?
Signup and view all the answers
What is a primary function of the nslookup program?
What is a primary function of the nslookup program?
Signup and view all the answers
What problem does a simple design with a single DNS server face?
What problem does a simple design with a single DNS server face?
Signup and view all the answers
What is the role of the root DNS servers?
What is the role of the root DNS servers?
Signup and view all the answers
What does the file /etc/resolv.conf do?
What does the file /etc/resolv.conf do?
Signup and view all the answers
Study Notes
DNS: Three Levels of Servers
- Root DNS servers: Over 1000 instances globally, providing IP addresses for top-level domain (TLD) servers. Copies of 13 servers coordinated by IANA.
- Top-Level Domain (TLD) servers: For specific top-level domains (e.g., .com, .org) and country-level domains (e.g., .uk, .jp). Provide IP addresses of authoritative DNS servers.
- Authoritative DNS servers: Each organization with public hosts maintains its own; provide hostname-to-IP address mappings for their domain.
Query Types
- Iterative queries: DNS servers ask other servers until it reaches the correct answer, with each query proceeding to another server.
- Recursive queries: A DNS server on behalf of a client, forwards the query to other servers (eventually to an authoritative server). The client receives the final answer or an error message.
Caching
- DNS extensively uses caching. Servers storing previously resolved mappings.
- Cached information discarded after a set time (often 2 days).
- Reduced number of queries across the internet and decreased delay.
DNS Message Format
- Query and reply messages share the same format.
- Header (12 bytes): Includes query/reply flag, recursion desired/available flags, and section counts.
- Question section: Names and types of queries (e.g., A record (IP address), MX record(mail server)).
- Answer section: Resource records for the queried name.
- Authority section: Records for other authoritative servers.
- Additional section: Extra relevant records.
DNS Cache Poisoning
- Attack: Substituting incorrect IP addresses in the DNS cache.
- Vulnerable versions of BIND (pre-BIND9).
- Spoofing technique: Using a matching transaction ID in fake replies.
- Attacker needs information on the source port the DNS server uses for queries.
- Challenges: Creating spoofing DNS Transaction IDs and guessing the destination port.
Fixing Cache Poisoning
- Randomizing source ports for queries.
- Implement "bailiwick check": Verifying that response hostnames are part of the original query.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Description
Explore the three levels of DNS servers, including Root, TLD, and Authoritative servers, as well as the types of DNS queries: iterative and recursive. This quiz provides insights into how DNS functions and the importance of caching in the process.