| E.g. Ubuntu hosts are defining their domain name by setting an entry in `/etc/hosts` in following scheme:
127.0.1.1 <shortname>.<domainname> <shortname>
|
`hostname -d` displays the domainname correctly, `hostname -f` also displays FQDN correctly independent of entries in `/etc/resolv.conf`. The `hostname`-switches `-f` and `-d` are available in Ubuntu, OpenSuse, CentOS and FreeBSD. |