1. Home
  2. Explore
  3. Computer Science
  4. Domain Name System (DNS)

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Domain Name System (DNS)

  • 54Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: DNS Basics

Why does a browser need DNS when a user enters a website name?

54 questions

  1. 1

    Why does a browser need DNS when a user enters a website name?

    Model answer

    A browser needs the server’s IP address to connect to a website. DNS maps the website’s domain name to that IP address.

    Explanation

    A domain name is easier for people to remember than an IP address, so DNS provides the lookup between them.

  2. 2

    What does DNS stand for, and what is its main function?

    Model answer

    DNS stands for Domain Name System. Its main function is to map domain names to IP addresses.

    Explanation

    DNS provides the name-to-address lookup that lets clients locate internet services by name.

  3. 3

    What is a stub resolver?

    Model answer

    A stub resolver is the DNS client running on a user’s computer. It checks local DNS information and sends queries to a configured DNS server when needed.

    Explanation

    It is the first part of the DNS lookup process on the user’s device.

  4. 4

    What does a stub resolver check before querying a DNS server?

    Model answer

    It checks its cache for a recently stored IP address for the requested domain. If the information is present, it can use it without making another DNS query.

    Explanation

    Caching avoids repeating lookups that have already been completed.

  5. 5

    How does a computer learn which DNS server to query?

    Model answer

    The DNS server is part of the computer’s network configuration. It may be configured manually or provided by the network’s DHCP server.

    Explanation

    The stub resolver needs a configured DNS server to send queries to when it cannot answer from its own cache.

  6. 6

    What is a recursive DNS server, and why might it make several queries?

    Model answer

    A recursive DNS server responds to a client’s request by finding the requested DNS information, possibly by querying other DNS servers. It may not already know the answer, so it follows the DNS hierarchy.

    Explanation

    The recursive server takes responsibility for obtaining an answer on the client’s behalf.

  7. 7

    How can caching by a recursive DNS server shorten a lookup?

    Model answer

    If the recursive server has a cached answer for a domain, it can return that answer without querying other DNS servers.

    Explanation

    A cached result can avoid repeating the hierarchy-wide lookup process.

  8. 8

    Why is DNS important to more than just browsing websites?

    Model answer

    DNS supports the use of internet services including websites and email. If DNS stops working, these and other internet activities can be disrupted.

    Explanation

    Internet services commonly rely on DNS to locate the servers that handle their traffic.

  9. 9

    What is a subdomain, and how can it be used?

    Model answer

    A subdomain is a name placed to the left of a domain, such as “academy” in “academy.example.com.” It can be directed to a different location from the main domain.

    Explanation

    Subdomains allow different services or destinations to be associated with names under the same domain.

  10. 10

    Describe the main sequence of DNS lookup steps when a device has no cached answer.

    Model answer

    The stub resolver asks its configured recursive DNS server, which may query a root server, a TLD server, and an authoritative server before returning the IP address.

    Explanation

    Each server in the hierarchy directs the recursive resolver toward the next server responsible for the requested name.

  11. 11

    What information do root DNS servers provide during a typical lookup?

    Model answer

    Root servers direct the recursive resolver to DNS servers responsible for the requested top-level domain, such as the servers for “.com.”

    Explanation

    Root servers refer queries to the appropriate TLD servers rather than supplying the final website IP address.

  12. 12

    What is a top-level domain (TLD)? Give two examples.

    Model answer

    A TLD is the ending portion of a domain name, such as “.com” or “.net.” Country-specific examples include “.jp” and “.ph.”

    Explanation

    TLDs are the part of a domain name that root servers use to direct queries to the relevant TLD servers.

  13. 13

    Why can’t a root server usually provide the final IP address for a website?

    Model answer

    Root servers handle the top-level-domain part of the lookup and refer the resolver to the appropriate TLD servers. They do not generally provide the final domain-to-IP mapping.

    Explanation

    The DNS hierarchy delegates responsibility for progressively more specific parts of a domain name.

  14. 14

    What does a root server return when asked about a TLD such as “.com”?

    Model answer

    It returns a list of DNS servers authoritative for that TLD. The recursive resolver can then ask one of those TLD servers for the next referral.

    Explanation

    This referral moves the lookup from the root level to the TLD level.

  15. 15

    What is a second-level domain (SLD), and where is it found in a domain name?

    Model answer

    The SLD is the name directly to the left of the TLD; in “example.com,” “example” is the SLD.

    Explanation

    After identifying the TLD, the resolver asks the relevant TLD server which servers are authoritative for the SLD.

  16. 16

    What does a TLD server do for a query about a particular second-level domain?

    Model answer

    It identifies the authoritative DNS server or servers responsible for that second-level domain and refers the recursive resolver to them.

    Explanation

    The TLD server provides the next referral rather than necessarily giving the requested host’s IP address.

  17. 17

    What does it mean for a DNS server to be authoritative for a domain?

    Model answer

    It means the server is responsible for the DNS information for that domain and can provide its records, such as an IP address.

    Explanation

    The recursive resolver asks the authoritative server for the final information it needs about the domain.

  18. 18

    What is the role of an authoritative DNS server’s zone file?

    Model answer

    A zone file contains DNS information for a domain, including records that identify its servers and map names to addresses.

    Explanation

    The authoritative server uses the zone file to answer queries about the domain it manages.

  19. 19

    How does an authoritative server’s answer complete a recursive lookup?

    Model answer

    The authoritative server returns the requested record, such as the IP address for a hostname. The recursive server can then return that answer to the client and cache it.

    Explanation

    The authoritative response supplies the information that the earlier referrals were leading toward.

  20. 20

    Why is DNS described as a hierarchy that uses delegation?

    Model answer

    Responsibility is divided among root, TLD, and authoritative servers. Each level can refer a query to the servers responsible for the next, more specific part of the domain.

    Explanation

    Delegation lets different DNS operators manage different portions of the namespace.

  21. 21

    What is an A record?

    Model answer

    An A record maps a domain name to an IPv4 address.

    Explanation

    It is a common DNS record used to find the IPv4 address associated with a name.

  22. 22

    What is an AAAA record, and how does it differ from an A record?

    Model answer

    An AAAA record maps a domain name to an IPv6 address, while an A record maps a name to an IPv4 address.

    Explanation

    Both records provide name-to-address mappings, but for different IP address versions.

  23. 23

    What information does an NS record provide?

    Model answer

    An NS record identifies a name server that is authoritative for a domain.

    Explanation

    Resolvers use NS information to identify which DNS server is responsible for answering queries about the domain.

  24. 24

    What is an SOA record used to indicate?

    Model answer

    An SOA, or Start of Authority, record identifies authority information for a DNS zone, including which name server is in charge.

    Explanation

    It provides information about the authority responsible for the zone.

  25. 25

    What is an MX record, and when is it used?

    Model answer

    An MX, or Mail Exchanger, record identifies the servers that handle email for a domain. Sending mail systems use it to find where to deliver messages.

    Explanation

    Email delivery requires locating the receiving domain’s mail servers.

  26. 26

    What is reverse DNS, and what does a PTR record do?

    Model answer

    Reverse DNS looks up a domain name from an IP address. A PTR, or pointer, record provides the domain name associated with an IP address.

    Explanation

    Unlike a typical forward lookup, this query starts with an IP address and seeks a name.

  27. 27

    What is a CNAME record, and how is it commonly used?

    Model answer

    A CNAME, or canonical name, record makes one domain name an alias for another domain name. It can, for example, point a “www” name to a canonical domain.

    Explanation

    CNAME records are used when a name should refer to another name rather than directly to an IP address.

  28. 28

    How does a TXT record differ from an A record?

    Model answer

    A TXT record stores text associated with a domain, while an A record maps a domain name to an IPv4 address.

    Explanation

    TXT records can carry information used by services and administrators rather than serving as an address mapping.

  29. 29

    How can SPF information be published in DNS, and what does it identify?

    Model answer

    SPF information can be published in a TXT record. It identifies which servers are authorized to send email for a domain.

    Explanation

    Other mail servers can query the published information when checking whether a message came from an authorized source.

  30. 30

    What is DKIM used to help verify?

    Model answer

    DKIM helps verify that an email has not been altered in transit.

    Explanation

    The content describes DKIM as an email-related mechanism published using DNS TXT records.

  31. 31

    What role can DMARC play in handling email that fails SPF or DKIM checks?

    Model answer

    DMARC lets a domain specify policies for how to handle email that does not pass SPF or DKIM checks.

    Explanation

    It provides a way for a domain to communicate how receiving mail systems should deal with messages that fail those checks.

  32. 32

    Why can plain-text DNS queries expose browsing information?

    Model answer

    A plain-text DNS query can be read by someone able to observe the network traffic, revealing the domain names a user is looking up.

    Explanation

    Traditional DNS queries commonly use UDP port 53 without encryption.

  33. 33

    What is DNS spoofing?

    Model answer

    DNS spoofing is an attack in which an attacker impersonates a DNS server or otherwise provides a false DNS response, potentially directing a user to a different IP address.

    Explanation

    A forged answer can send a client to a server other than the one it intended to reach.

  34. 34

    How can an internet service provider use ordinary DNS queries to learn about a user’s activity?

    Model answer

    If the queries are visible to the provider, it can see the domain names the user looks up and infer which websites they are visiting.

    Explanation

    Unencrypted DNS traffic can expose query contents to parties able to observe it.

  35. 35

    What is DNS over HTTPS (DoH)?

    Model answer

    DoH sends DNS queries over an HTTPS connection, encrypting the DNS traffic.

    Explanation

    HTTPS encryption makes the query harder for an observer in the middle of the connection to read.

  36. 36

    How does DoH make DNS traffic harder to identify in a traffic capture?

    Model answer

    DoH carries DNS queries as HTTPS traffic, making them less distinguishable from other web traffic than ordinary DNS queries using UDP port 53.

    Explanation

    The DNS query is encrypted and blends into a larger group of HTTPS traffic.

  37. 37

    What two requirements must be met for a client to use DoH?

    Model answer

    The client must support and have DoH enabled, and the DNS server it uses must also support DoH.

    Explanation

    Both ends need to support the protocol for DNS queries to use it.

  38. 38

    What is DNS over TLS (DoT)?

    Model answer

    DoT is DNS over Transport Layer Security, a method of sending DNS queries using an encrypted connection.

    Explanation

    Like DoH, DoT protects DNS queries with encryption, though it uses TLS rather than HTTPS.

  39. 39

    How is DNSSEC different from encryption-based DNS protections such as DoH?

    Model answer

    DNSSEC is a suite of tools for checking that DNS queries and responses are valid; it is not described as an encryption method.

    Explanation

    Encryption protects confidentiality, while DNSSEC focuses on the validity of DNS data.

  40. 40

    What is DNS filtering, and name two kinds of content it can block.

    Model answer

    DNS filtering controls which DNS destinations are allowed or denied. It can block threats, ads, trackers, or categories of content.

    Explanation

    Filtering policies can use allow lists, deny lists, security categories, and threat intelligence.

  41. 41

    How can a DNS provider help prevent access to known malicious websites?

    Model answer

    A provider such as Quad9 can use information about known-bad websites to prevent users from accessing them through DNS.

    Explanation

    This is a form of DNS-based malware prevention.

  42. 42

    What is a domain registrar?

    Model answer

    A domain registrar is an organization through which a person can register a domain name.

    Explanation

    After registering a domain, its owner can specify which name servers will provide authoritative DNS information for it.

  43. 43

    What role does ICANN play in DNS governance, according to the content?

    Model answer

    ICANN helps govern DNS, accredits domain registrars, and can delegate which organizations operate TLD servers.

    Explanation

    Its described responsibilities include oversight of the DNS system and authority over parts of its delegation structure.

  44. 44

    What is the difference between a domain registrar and an authoritative name server?

    Model answer

    A registrar handles the registration of a domain, while an authoritative name server stores and provides DNS information for that domain.

    Explanation

    The registrar and the DNS hosting provider can be different organizations.

  45. 45

    Can a domain owner use one company as a registrar and another as the name-server provider?

    Model answer

    Yes. A domain owner can register a domain with one company and specify another company’s name servers as authoritative for it.

    Explanation

    The registrar can be told which name servers should handle the domain’s DNS information.

  46. 46

    What happens after a domain owner tells a registrar to use different name servers?

    Model answer

    The registrar updates the relevant TLD registry with the domain’s name-server records.

    Explanation

    The delegation information allows DNS resolvers to find the authoritative servers for the domain.

  47. 47

    What is the WHOIS database used to show?

    Model answer

    The WHOIS database contains registration information about a domain and its owner, such as a name, company, or address.

    Explanation

    The information may be publicly visible unless privacy protection is used.

  48. 48

    How can domain registration privacy affect information shown in WHOIS?

    Model answer

    A domain owner can pay for privacy protection, which can redact or conceal personal registration details in WHOIS.

    Explanation

    Without that protection, registration details may be visible to people who look them up.

  49. 49

    What is a TLD registry’s role in the delegation process?

    Model answer

    The TLD registry maintains the name-server information used to direct queries for registered domains toward their authoritative servers.

    Explanation

    The registrar supplies the relevant name-server records to the registry.

  50. 50

    How can someone run a DNS server on a home network?

    Model answer

    They can run a recursive DNS server on a local device, such as a Raspberry Pi, and configure devices on the network to use it.

    Explanation

    A local server can answer from its cache and obtain unfamiliar answers from an upstream DNS server.

  51. 51

    What does a local recursive DNS server do when it does not know the answer to a query?

    Model answer

    It forwards the query to an upstream DNS server that has been configured for it.

    Explanation

    The upstream server can resolve the name through its own cache or by querying the DNS hierarchy.

  52. 52

    How can a local DNS server help block advertisements?

    Model answer

    A local DNS server can be configured with filtering that blocks DNS requests for advertising domains.

    Explanation

    The content gives ad-blocking DNS software as an example of a use for a home DNS server.

  53. 53

    What is the purpose of configuring a DNS fallback?

    Model answer

    A fallback specifies what DNS service a device should use if its preferred resolver loses connection or fails.

    Explanation

    The fallback may be the system’s configured DNS server, though that may provide less privacy if it is run by an ISP.

  54. 54

    Why might an organization enforce DoH settings across managed computers?

    Model answer

    Enforcement helps ensure that devices use encrypted DNS without relying on users to configure each device individually.

    Explanation

    Policies and client configuration can be deployed to managed computers to apply DNS settings consistently.

1 of 54
Question 1 of 54

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent