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:
Loris Bennett <[log in to unmask]>
Reply To:
Loris Bennett <[log in to unmask]>
Date:
Wed, 16 Mar 2016 15:56:35 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (41 lines)
Brandon Vincent <[log in to unmask]> writes:

> On Mar 15, 2016 3:44 AM, "Loris Bennett"
> <[log in to unmask]> wrote:
>> What other files could have an influence on what 'hostname' returns?
>
> Could you post the output of
>
> getent hosts [hostname] and getent hosts [ip] for both systems?
>
> Also please post the hosts line from nsswitch.conf from both machines.
>
> Brandon Vincent
>

[root@tadmin01 ~]# getent hosts tadmin01
10.141.235.254  tadmin01.test.cluster tadmin01
[root@tadmin01 ~]# getent hosts 10.141.235.254
10.141.235.254  tadmin01.test.cluster tadmin01

[root@tadmin02 ~]# getent hosts tadmin02
10.141.235.253  tadmin02.test.cluster tadmin02
[root@tadmin02 ~]# getent hosts 10.141.235.253
10.141.235.253  tadmin02.test.cluster tadmin02

[root@tadmin01 ~]# grep hosts /etc/nsswitch.conf
#hosts:     db files nisplus nis dns
hosts:      files dns

[root@tadmin02 ~]# grep hosts /etc/nsswitch.conf
#hosts:     db files nisplus nis dns
hosts:      files dns

Cheers,

Loris

-- 
Dr. Loris Bennett (Mr.)
ZEDAT, Freie Universität Berlin         Email [log in to unmask]

ATOM RSS1 RSS2