SCIENTIFIC-LINUX-USERS Archives

March 2016

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Nico Kadel-Garcia <[log in to unmask]>
Reply To:
Nico Kadel-Garcia <[log in to unmask]>
Date:
Tue, 15 Mar 2016 08:42:51 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (17 lines)
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

ATOM RSS1 RSS2