Which files must be edited to change the name of a Linux PC (e.g., from PC1 to machine1) ?
What will be an ideal response?
The contents of the file /etc/sysconfig/network is shown below:
NETWORKING=yes
HOSTNAME=PC1
FORWARD_IPV4=yes
This file defines global parameters of the network configuration like host name, domain name and
IP address of the default gateway. It also includes a line to determine whether the Linux PC acts as
a router or not./etc/hosts file may have the IP address and its hostname. This file must be edited to
make the change effective. Otherwise, whenever resolving its hostname, the wrong IP address
would be retrieved.
You might also like to view...
Which of the following allows an application to securely authenticate a user by receiving credentials from a web domain?
A. TACACS+ B. RADIUS C. Kerberos D. SAML
C++ is an example of a
a. Machine language b. High-level language c. Low-level language d. Assembly language