On Tue, Mar 15, 2016 at 8:32 AM, Nico Kadel-Garcia <[log in to unmask]> wrote:

> The problem is that the $HOSTNAME for the system isn't published in
> DNS, nor is it the first hostname for a line in /etc/hosts, so the
> "hostname --fqdn" is not finding it associated with your IP addresses.
> The usual approach for portable laptops is to put a line like this in
> /etc/hosts somewhere.
>
>     127.0.0.1 mymachine.mydomain

Also note that this needs to be unique on each machine, or they may
have considerable difficulty talking to each other, especially if you
copy around /etc/hosts files for different machines.

I actually publish a chef cookbook for this, at
https://github.com/nkadel-skyhook/nkadel-chef-hosts