/etc/services
/etc/nsorder
/etc/nsswitch.conf/
/etc/hosts E. None of the above
Answer is Right!
Answer is Wrong!
The correct answer is A. /etc/services.
/etc/services is a text file that contains a list of port numbers and their associated services. The file is used by the inetd daemon to determine which service to start when a connection is made to a particular port.
The file is formatted as follows:
port/protocol service name
For example, the following line in the file indicates that port 80 is used by the HTTP service:
80/tcp http
The file is typically owned by root and has a mode of 644.
The following are the other options:
- B. /etc/nsorder: This file contains the order in which name servers are used to resolve hostnames.
- C. /etc/nsswitch.conf/: This file contains the configuration for the name service switch.
- D. /etc/hosts: This file contains a list of hostnames and their associated IP addresses.
- E. None of the above: This option is incorrect.