System Management
An administrator added the line "web01.example.com 10.0.5.20 web01" to /etc/hosts. The name web01 still does not resolve. Which corrected line is valid?
Show the answer
Correct answerB. 10.0.5.20 web01.example.com web01
Each /etc/hosts line must start with the IP address, then the canonical hostname, then optional aliases, all separated by whitespace. Putting the name first still leaves the address in the wrong field. Commas or equals signs are not valid separators in this file.