1. Which of the following statements is valid in the file /etc/resolv.conf?
A) A. order hosts,bind B) B. 192.168.168.4 dns-server C) C. hosts: files,dns D) D. domain example.com
2. Which of the following is a correct entry in the /etc/hosts file?
A) A. localhost 127.0.0.1 localhost.localdomain B) B. localhost.localdomain localhost 127.0.0.1 C) C. localhost localhost.localdomain 127.0.0.1 D) D. 127.0.0.1 localhost.localdomain localhost E) E. localhost.localdomain 127.0.0.1 localhost
3. What is the purpose of the dig command?
A) A. It can be used as a tool for querying DNS servers. B) B. It can be used for searching through indexed file content. C) C. It can be used to look for open ports on a system. D) D. It can be used to ping all known hosts on the current subnet.
4. When issuing the command ifconfig eth0 192.168.1.20/24 up, which of the following happens? (Choose TWO correct answers.)(Select 2answers)
A) A. The address 192.168.1.20 is associated with the interface eth0. B) B. A network route to 192.168.1.0 with the netmask 255.255.255.0 pointing directly to eth0 is created. C) C. 192.168.1.1 is probed for router functionality and, in case of success, it is added to the list of default routers. D) D. The addresses from 192.168.1.20 to 192.168.1.24 are activated on the interface eth0. E) E. If eth0 was configured with a previous IP address, it is retained in addition to adding the new address
5. Given the following routing tableKernel IP routing table -Destination Gateway Genmask Flags Metric Ref Use Iface192.168.178.0 0.0.0.0 255.255.255.0 U 9 0 0 wlan0Why does the command route add default gw 192.168.1.1 fail?
A) A. Because there is no route to 192.168.1.1. B) B. Because only one route can exist at a time. C) C. Because there is already a default route. D) D. Because default routes can not be set manually. E) E. Because default routes must be set with ifconfig.
Leave a comment