SCIENTIFIC-LINUX-USERS Archives

March 2016

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

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

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

Print Reply
Sender:
Mailing list for Scientific Linux users worldwide <[log in to unmask]>
Date:
Tue, 15 Mar 2016 17:38:36 +0000
Reply-To:
Andrew C Aitchison <[log in to unmask]>
Message-ID:
Subject:
From:
Andrew C Aitchison <[log in to unmask]>
Content-Type:
text/plain; format=flowed; charset="US-ASCII"
In-Reply-To:
MIME-Version:
1.0
Comments:
To: Loris Bennett <[log in to unmask]> cc: [log in to unmask]
Parts/Attachments:
text/plain (40 lines)
On Tue, 15 Mar 2016, Loris Bennett wrote:

> Hi,
>
> I'm using ansible to set up two servers and have run into the problem
> that on one server 'hostname' returns the just the name of the machine,
> but on the other I get the FQDN:
>
> # hostname -s; hostname -d; hostname -f; hostname
> tadmin01
> test.cluster
> tadmin01.test.cluster
> tadmin01
>
> # hostname -s; hostname -d; hostname -f; hostname
> tadmin02
> test.cluster
> tadmin02.test.cluster
> tadmin02.test.cluster

Does
 	type hostname
give the same result on both machines ?

> The following files are identical on both servers
>
> /etc/hosts
> /etc/resolv.conf
>
> The files
>
> /etc/sysconfig/network
 		...		...
> What other files could have an influence on what 'hostname' returns?

"man hostname" suggests a few more files that could be relevant.

-- 
Andrew C. Aitchison

ATOM RSS1 RSS2