Configure a caching DNS server

Kobie is a RHEL Sysadmin at Red Hat:

  • His RHEL Server: RHEL_Server_024
  • His username: kobie.robinson@redhat.com
  • His professional preference: a competent RHEL Sysadmin NEVER runs Linux commands as root
  • His certifications: LPIC 1, 2 and 3.
  • His task: Configure a caching DNS server

Kobie has just been promoted to a Senior RHEL Trainer position at Red Hat. His job: to train employees of the company so that they can pass Linux certification exams. In two weeks, a new class of 24 employees will class up. They are all LFCS certification candidates. Kobie's responsibility: the entire class of 24 students MUST pass the LFCS exam on their first attempt. Kobie will train the students for 6 months before they take the exam. Kobie decides to write a program that wil give the students random daily quizzes. Each quiz will be generated from randomly chosen LFCS objectives.

Today, Kobie is building the quiz questions and answers based on this objective.

Please generate a 25 question quiz on configuring a caching DNS server on a modern RHEL system. After generating the quiz, please generate detailed solutions that explain each solution.

Quiz Questions:

  1. What package do you need to install for configuring a caching DNS server on RHEL?
  2. Which file needs to be modified to configure the caching DNS server?
  3. What directive in the named.conf file allows recursion for DNS queries?
  4. How can you specify the IP addresses on which the caching DNS server should listen?
  5. Which directory is typically used to store DNS zone files?
  6. How can you define forwarders for the caching DNS server?
  7. What is the purpose of the "allow-query" directive in named.conf?
  8. How can you disable DNSSEC validation for the caching DNS server?
  9. Which command can you use to check the syntax of the named.conf file?
  10. How can you start the DNS service on RHEL?
  11. Which command can you use to enable the DNS service to start automatically on system boot?
  12. How can you open the necessary ports in the firewall for the DNS service?
  13. What command can you use to create a new file for caching DNS server configuration?
  14. How can you set the caching DNS server to listen on IPv6 addresses as well?
  15. How can you specify the maximum cache size for the DNS server?
  16. Which command allows you to view the status of running DNS zones?
  17. What is the purpose of the "auth-nxdomain" directive in named.conf?
  18. How can you configure the caching DNS server to log queries for analysis?
  19. What is the command to stop the DNS service?
  20. Which command can you use to check the running status of the DNS service?
  21. How can you configure the caching DNS server to resolve only specific domains?
  22. What is the purpose of the "dump-file" directive in named.conf?
  23. How can you configure the caching DNS server to listen on a specific interface?
  24. What is the default DNS port used by the caching DNS server?
  25. How can you configure the caching DNS server to allow DNS zone transfers?

Quiz Solutions:

  1. bind
  2. /etc/named.conf
  3. recursion
  4. listen-on
  5. /var/named
  6. forwarders
  7. It specifies which clients are allowed to query the DNS server.
  8. dnssec-validation no
  9. named-checkconf
  10. systemctl start named
  11. systemctl enable named
  12. firewall-cmd --permanent --add-service=dns && firewall-cmd --reload
  13. nano /etc/named/named.conf.options
  14. listen-on-v6 { any; };
  15. max-cache-size <size>;
  16. rndc status
  17. It specifies whether to answer authoritative NXDOMAIN responses.
  18. logging { channel querylog { file "/var/log/query.log"; severity debug; }; category queries { querylog; }; };
  19. systemctl stop named
  20. systemctl status named
  21. allow-recursion { localhost; specific-domain.com; };
  22. It specifies the file to which the server dumps the cache data during a controlled shutdown.
  23. interface-interval <interface>;
  24. 53
  25. allow-transfer { IP_Address; };

Please note that the answers provided are general examples and may vary depending on the specific configuration and preferences of the caching DNS server on RHEL.

 

You should also read:

DNS Server

Andreas is studying computer science at an online university. Please help him to master DNS by answering the following questions (note: Andreas prefers…

Configure a caching DNS server

Lycia is a RHEL Sysadmin at Google: Her RHEL Server: Lycia_RHEL_Server_01 Her username: lycia.lycia Her preference: Linux commands must NEVER be run as…