QuestionQ41

Network Management

A system administrator manages a small network made up of several AIX servers and workstations. Because the network is simple and has security requirements, they chose to manage local name resolution through the /etc/hosts file. A new server named “appserver” was recently added to the network, and the administrator needs to update /etc/hosts accordingly. They choose the command-line approach to make the required change.

Which command adds the host appserver with IP address 192.168.1.10 to the /etc/hosts file?

  • A echo “192.168.1.10 appserver” >> /etc/hosts
  • B addhost -f /etc/hosts -i 192.168.1.10 appserver
  • C edithosts -add appserver -ip 192.168.1.10
  • D hostent -a appserver -i 192.168.1.10
Explanation

An AIX /etc/hosts entry has the format Address HostName. Appending 192.168.1.10 appserver to the file adds the required IP-address-to-host-name mapping for local resolution. IBM documents that hosts can be added by editing /etc/hosts and specifies the address-first entry format.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!