Linux Ch.12
To test DNS configuration by resolving a host name to an IP address, which command or commands can you use? (Choose all that apply.) a. nslookup hostname b. dig hostname c. host hostname d. resolvectl query hostname
a. nslookup hostname b. dig hostname c. host hostname d. resolvectl query hostname The nslookup, dig, host, and resolvectl query commands can all be used to test name resolution on a system.
Which two commands can be used to modify the route table on a Linux computer? (Choose two answers.) a. route b. ipconfig c. ip d. traceroute
a. route c. ip The route command can be used to modify the route table on a system that has the net-tools package installed, while the ip command can be used to modify the route table on a system that has the iproute/iproute2 package installed.
The NetworkManager or Systemd-networkd components must be installed on a Linux system in order to configure an IP address on a network interface. a. True b. False
b. False Both NetworkManager and Systemd-networkd are optional components that help configure network interfaces and connections.
Which Windows program is often used to connect to a Linux server via SSH? a. SSHD b. Putty c. Rdesktop d. mstsc
b. Putty The Putty program can be used on a Windows system to connect to a Linux server using telnet or SSH.
Which of the following utilities can be used to view and configure a network renderer? (Choose all that apply.) a. ifconfig b. ip c. networkctl d. nmcli
c. networkctl d. nmcli You can use the nmcli command to view and configure NetworkManager, and the networkctl command to configure Systemd-networkd.
Which file stores the IP addresses of the DNS servers used to resolve host names if no DNS servers are specified within the network configuration file for the network interface? a. /etc/hosts b. /etc/host.conf c. /etc/resolve d. /etc/resolv.conf
d. /etc/resolv.conf The DNS servers used on the system are listed in /etc/resolv.conf.
The ifconfig command is being deprecated. Which of the following command is most likely to replace the ifconfig command? nmcli device show eth0 nmcli device status ip addr ip -br addr
ip -br addr
Which of the following is not true about SFTP? It uses ssh for secure file transfer The file transfer software is free and open source It uses the Godzilla software for file transfer SFTP stands for Secure File Transfer Protocol (SFTP)
It uses the Godzilla software for file transfer SFTP stands for Secure File Transfer Protocol. It is a protocol that provides secure file transfer between a client and a server.
Before a computer can use a router, with what configuration information must it be provided? a. routing table b. subnet mask c. default gateway d. default router
c. default gateway The default gateway specifies the router to which a system sends traffic destined for remote networks.
On an Ubuntu system, you edit the dns.conf file. Which of the following command do you execute next to apply the changes to the system? sudo systemctl status systemd-resolved sudo systemctl restart systemd-resolved Sudoedit dns.conf resolvectl
After editing the `dns.conf` file on an Ubuntu system, the next step to apply the changes to the system is to restart the systemd-resolved service. This can be done using the command `sudo systemctl restart systemd-resolved`. This command will ensure that the changes made in the `dns.conf` file are implemented by restarting the DNS resolution service.
The daemons associated with network services listen for network traffic associated with a particular _____. a. station b. port c. IP address d. allocation number
b. port Each network service on a server listens to a unique port number.
On an Alma Linux system, you want to view details about the open ssh server package. Which of the following command do you execute? systemctl status sshd sudo dnf install openssh-server sudo dnf info openssh-server sudo systemctl enable --now sshd
sudo dnf info openssh-server
The following command tries to verify if the applied adapter configurations are working: sudo netplan try This command tries to verify for how many seconds before reverting the configuration? 1001 20 240 120
120
On an Ubuntu system, you want to view the link speed on the IPv4 interface of your wired connection. Which following option-combination do you select to achieve this view? Activities > Show Applications > Firefox Activities > Terminal > Utilities Activities > Show Applications > Settings Activities > Terminal > Software
Activities > Show Applications > Settings
On an Ubuntu system, you add the AllowUsers administrator text to the sshd_config file. Which of the following describes the effect of this update? It allows users a higher priority while connecting remotely using ssh It allows both users and administrators to connect remotely using ssh It allows only users to connect remotely using ssh It allows only administrators to connect remotely using ssh
It allows only administrators to connect remotely using ssh
On an Ubuntu system, which of the following is true about the resolvectl command? It resolves the DNS records on the system and not the IPv4 or the IPv6 records It resolves the DNS records as well as the IPv4 and IPv6 records on the system It resolves the IPv6 records on the system and not the DNS records or the IPv4 records It resolves the IPv4 records on the system and not the DNS records or the IPv6 records
It resolves the DNS records as well as the IPv4 and IPv6 records on the system
You want to generate SSH keys for your user account and copy them to a remote computer to simplify future SSH authentication. What two commands can you use to perform these actions? (Choose two answers.) a. ssh-keygen b. ssh-add c. ssh-copy-id d. ssh-agent
a. ssh-keygen c. ssh-copy-id The ssh-keygen command can be used to generate SSH user keys, while the ssh-copy-id command can be used to copy SSH user keys to a remote server for authentication.
Which of the following can be used to provide graphical remote administration? (Choose all that apply.) a. telnet b. ssh -X c. ssh d. VNC
b. ssh -X d. VNC You can use the -X option of the ssh command to tunnel X Windows traffic through an SSH session. Virtual Network Connection (VNC) servers can also be used to provide a remote desktop to VNC viewer software running on remote systems.
What are two means available to resolve a host name to the appropriate IP address? (Choose two answers.) a. DHCP b. DNS c. /etc/hosts d. /etc/resolve.conf
b. DNS c. /etc/hosts Lines within /etc/hosts and DNS servers can be used to resolve host names to IP addresses.
The IP address of 127.0.0.1 is also referred to as the _____. a. local address b. lookup address c. local host d. loopback address
d. loopback address The IPv4 loopback address is 127.0.0.1.
Which of the following port numbers is associated with SSH? a. 22 b. 137 c. 49 d. 23
a. 22
Network daemons are started on demand using inetd, xinetd, or Systemd socket units. a. True b. False
a. True Internet super daemons started by inetd/xinetd are started on demand, as are Systemd socket units.
Which file holds the methods to be used and the order in which they will be applied for host name resolution? a. /etc/nsswitch.conf b. /etc/resolve.conf c. /etc/hosts d. /etc/dns.conf
a. /etc/nsswitch.conf The methods and order of name resolution are listed in /etc/nsswitch.conf.
On an Ubuntu system, you execute the following command: sudoedit /run/systemd/resolve/resolv.conf This displays the resolv.conf file along with some guidelines. Examples of some such guidelines are: This file is managed by system-resolved. Do not edit the file. Which of these guidelines are actually displayed along with the resolv.conf file? Neither 1 nor 2 Only 1 Both 1 & 2 Only 2
Step1 The problem is asking us to determine which of the two given guidelines are typically displayed with the resolv.conf file. Resolv.conf is a file that is responsible for the Domain Name Service (DNS). Step2 The guidelines mentioned are:1. This file is managed by system-resolved.2. Do not edit the file. Step3 These guidelines are generally displayed alongside the resolv.conf file. The first guideline is to inform users that the file is managed by system-resolved, which is a program that automatically updates the DNS. The second guideline is to advise users not to edit the file, as it can disrupt the automatic updates. Step4 However, the exact guidelines displayed can vary depending on the system's configuration. In some cases, only one guideline is displayed, while in others, both guidelines are shown. Step5 In a standard situation, both guidelines are typically displayed. Therefore, the answer is both 1 and 2.
Which file would you modify to permanently change the IP configuration of a network interface on a modern Fedora Workstation system? a. /etc/NetworkManager/system-connections/name.nmconnection b. /etc/sysconfig/network c. /etc/netplan/00-installer-config.yaml d. /etc/network/interfaces
a. /etc/NetworkManager/system-connections/name.nmconnection Modern Fedora systems store their network configuration in .nmconnection files under the /etc/NetworkManager/system-connections directory.
Which of the following are stand-alone daemons? (Choose all that apply.) a. Apache (httpd) b. Washington University FTP (in.ftpd) c. telnet (in.telnetd) d. DNS (named)
a. Apache (httpd) d. DNS (named) The httpd and named daemons are stand-alone daemons.
SSH encrypts all traffic that passes across the network, whereas telnet does not. a. True b. False
a. True Secure Shell (SSH) is a secure replacement for telnet that encrypts all traffic.
The line that configures the host name for the computer at boot time can be found in /etc/hostname. a. True b. False
a. True The system host name is stored within the /etc/hostname file.
Which commands can be used to display TCP/IP connections on your Linux system? (Choose all that apply.) a. netstat -t b. mtr c. traceroute show d. ss -t
a. netstat -t d. ss -t The netstat -t command displays TCP/IP connections on a system with the net-tools package installed, while the ss -t command displays TCP/IP connections on a system with the iproute/iproute2 package installed.
