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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *