You notice that a remote server is not accessible via its hostname, but it's accessible via its IP address. Which configuration file would you inspect first?
- /etc/hosts
- /etc/hostname
- /etc/resolv.conf
- /etc/network/interfaces
If a remote server is not accessible via its hostname, checking the /etc/hosts file is a good starting point. This file contains mappings of hostnames to IP addresses, and if there's an issue with name resolution, it's often related to this file.
Loading...
Related Quiz
- Which command is used to send ICMP echo requests to test network connectivity?
- You are writing a script that requires parsing command-line options with both short and long formats. Which command would you likely use?
- After a recent system update, your Linux server fails to boot properly. It seems to hang after the bootloader phase. Where would you begin troubleshooting to identify the issue?
- When debugging, which shell built-in command can be used to read and execute commands from a file?
- Which daemon is responsible for network interface configuration and automatic switching between networks?