I have defined the server's FQDN and its alias in /etc/hosts
:
X.X.X.X server1.example.com server1
However, the command hostname --fqdn
only returns the alias (server1
) and not the FQDN. Why is that?
I have defined the server's FQDN and its alias in /etc/hosts
:
X.X.X.X server1.example.com server1
However, the command hostname --fqdn
only returns the alias (server1
) and not the FQDN. Why is that?
Comments
Post a Comment