This quiz is part of the DevOpsTheHardWay course.

Please answer the quiz and click the "Test" button at the bottom right.

Networking - DNS - multichoice questions

Question 1

Which file is used when resolving the hostname localhost?

Question 2

Assume the following DNS records are stored in a TLD DNS server:

(www.google.com, ns1.google.com, ???, 3600)
(ns1.google.com, ???, A, 60)

Assume the following records are stored in the google.com authoritative DNS server:

(www.google.com, us-east-1.google.com, ???, 3600)
(us-east-1.google.com, 146.54.29.12, ???, 60)

Choose the possible input for the missing content (top-down)

Question 3

Given a user who is trying to resolve gov.org.il. Assuming the local DNS server doesn't have the IP or the hostname of the DNS server responsible for the .il TLD.

Where does the local DNS server go?

Question 4

Given the following description of each DNS server in the hierarchy, match the DNS server type according to the following order:

  1. Highest level of the DNS hierarchy, knows how to reach servers responsible for a given domain (e.g., .com, .edu).
  2. Replies to DNS query requested by a local user. Requesting all other DNS servers to answer the query on behalf of the user.
  3. Responsible for a domain (e.g., .com, .edu); knows how to contact authoritative name servers.
  4. Provides hostname to IP mappings for organization's domain.


Question 5

What are the benefit(s) of caching in the local DNS server?

Given a client, local DNS server, root level, TLD and authoritative servers, as described here:

Suppose that the local DNS server caches all information coming in from all root, TLD, and authoritative DNS servers for 20 seconds. Assume also that the local DNS server cache is initially empty. The client has no any caching mechanism. Assume that a DNS query latency is 2 seconds (1 second for each side - request and response) for all servers (client - local DNS, local DNS - root level, local DNS - TLD, local DNS - authoritative server).

Consider the following DNS requests, made by some clients at the following order:

  1. google.com
  2. icann.org
  3. amazon.com
  4. google.com
  5. cnn.com
  6. google.com

Answer the following 3 questions. When you're asked to calculate the resolve time of a given domain, count only the time it takes to resolve the domain itself, exclude the time taken to resolve the previous domains in the list

Question 6

Which of the domains require 8 seconds to be resolved?

Question 7

Which of the domains require 6 seconds to be resolved?

Question 8

Which of the domains require 2 seconds to be resolved?

Question 9

Choose the correct sentences regarding local DNS server:

Question 10

What is the role of an authoritative name server in the DNS?

license