Which file in Linux is used to set the hostname and the order in which the system resolves addresses?
- /etc/hostname
- /etc/hosts
- /etc/resolv.conf
- /etc/networks
The /etc/hosts file is used to set the hostname and the order in which the system resolves addresses. It contains mappings of IP addresses to hostnames and can be used to define the local system's hostname.
Loading...
Related Quiz
- You've been tasked with writing a script that processes input arguments. How would you check if the number of arguments provided to the script is less than 3?
- For a system running the Linux kernel, where are module configuration files typically stored?
- Which tool is commonly used to manage btrfs file systems?
- The _________ command provides a bird's-eye view of the system's current resource usage, including CPU, RAM, and swap.
- You've been tasked to lockdown a specific application on an Ubuntu server. You decide to use a tool that restricts programs to a limited set of resources. Which tool would you primarily utilize?