Page 1 of 1

write commands only in terminal Kali Linux or redhart

Posted: Wed Apr 27, 2022 3:52 pm
by answerhappygod
write commands only in terminal Kali Linux or redhart
Write Commands Only In Terminal Kali Linux Or Redhart 1
Write Commands Only In Terminal Kali Linux Or Redhart 1 (129.99 KiB) Viewed 73 times
Task#1: Configuring a Cache Only Name Server In this exercise, you'll install BIND and set it up as a cache-only name server. You'll also configure a forwarder to optimize speed in the DNS traffic on your network. To complete a this exercise, you need to have a working Internet connection on your RHEL server. 1. Open a terminal, log in as root, and run yum -y install bind-chroot on the host computer to install the bind package. 2. With an editor, open the configuration file /etc/named.conf. Listing 14.1 shows a portion of this configuration file. You need to change some parameters in the con- figuration file to have BIND offer its services to external hosts. 3. Change the file to include the following parameters: listen-on port 53 { any; }; and allow-query { any; };. This opens your DNS server to accept queries on any network interface from any client. 4. Still in /etc/named.conf, change the parameter dnssec-validation; to dns- server-validation no;. 5. Finally, insert the line forwarders x.x.x.x in the same configuration file, and give it the value of the IP address of the DNS server you normally use for your Internet connection. This ensures that the DNS server of your Internet provider is used for DNS recursion and that requests are not sent directly to the name servers of the root domain. 6. Use the service named restart command to restart the DNS server. 7. From the RHEL host, use dig redhat.com. You should get an answer, which is sent by your DNS server. You can see this in the SERVER line in the dig response. Con- gratulations, your cache-only name server is operational!