Change host name v2.0

My problem was that hostname command gave FQDN and hostname -f short name. And output of hostname -d was nothing.

What the..?

Solution was to add short name to HOSTNAME field in /etc/sysconfig/network file and then add ip and hostname to /etc/hosts using format:

IP FQDN SHORTNAME

Leave a Reply