-
The /etc/hosts file must contain a fully qualified name of the server. You can check your fully qualified name by typing the command:
|
›_ Console |
|
# hostname |
-
Change the hosts file:
|
›_ Console |
|
# nano /etc/hosts |
-
Make sure that the document has a line in the following format:
<IP-address> <machine-name> <fully-qualified-machine-name>
For example:
192.168.2.2 oraclelinux19c oraclelinux19c.localdomain
-
You can find the machine-name by checking at what follows after the @ character on the terminal. For example:
›_ Console
#root@oraclelinux19c
-
Set or change the correct hostname (fully qualified name) in the /etc/hostname file by typing the command:
|
›_ Console |
|
# nano /etc/hostname |
-
Make sure that the document has the following line (change "oraclelinux19c" with your machine name):
oraclelinux19c.localdomain
-
You can find your IP address by using the ifconfig command.
|
›_ Console |
|
# ifconfig |