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:
- What package do you need to install for configuring a caching DNS server on RHEL?
- Which file needs to be modified to configure the caching DNS server?
- What directive in the named.conf file allows recursion for DNS queries?
- How can you specify the IP addresses on which the caching DNS server should listen?
- Which directory is typically used to store DNS zone files?
- How can you define forwarders for the caching DNS server?
- What is the purpose of the "allow-query" directive in named.conf?
- How can you disable DNSSEC validation for the caching DNS server?
- Which command can you use to check the syntax of the named.conf file?
- How can you start the DNS service on RHEL?
- Which command can you use to enable the DNS service to start automatically on system boot?
- How can you open the necessary ports in the firewall for the DNS service?
- What command can you use to create a new file for caching DNS server configuration?
- How can you set the caching DNS server to listen on IPv6 addresses as well?
- How can you specify the maximum cache size for the DNS server?
- Which command allows you to view the status of running DNS zones?
- What is the purpose of the "auth-nxdomain" directive in named.conf?
- How can you configure the caching DNS server to log queries for analysis?
- What is the command to stop the DNS service?
- Which command can you use to check the running status of the DNS service?
- How can you configure the caching DNS server to resolve only specific domains?
- What is the purpose of the "dump-file" directive in named.conf?
- How can you configure the caching DNS server to listen on a specific interface?
- What is the default DNS port used by the caching DNS server?
- How can you configure the caching DNS server to allow DNS zone transfers?
Quiz Solutions:
- bind
- /etc/named.conf
- recursion
- listen-on
- /var/named
- forwarders
- It specifies which clients are allowed to query the DNS server.
- dnssec-validation no
- named-checkconf
- systemctl start named
- systemctl enable named
- firewall-cmd --permanent --add-service=dns && firewall-cmd --reload
- nano /etc/named/named.conf.options
- listen-on-v6 { any; };
- max-cache-size <size>;
- rndc status
- It specifies whether to answer authoritative NXDOMAIN responses.
- logging { channel querylog { file "/var/log/query.log"; severity debug; }; category queries { querylog; }; };
- systemctl stop named
- systemctl status named
- allow-recursion { localhost; specific-domain.com; };
- It specifies the file to which the server dumps the cache data during a controlled shutdown.
- interface-interval <interface>;
- 53
- 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.