Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: David Mosberger-Tang <davidm@azstarnet.com>
Subject: Re: /etc/hosts ignored
Date: Sun, 8 Dec 1996 15:38:04 -0700	[thread overview]
Message-ID: <fb2bbc7aab4b2b2595cbba4734d231fc.axp-list@archive.invalid> (raw)

>>>>> On Sun, 8 Dec 1996 16:03:22 +1130 (???), Howard Helbein <hch@vern.hch.com> said:

  >> > > | I have entries in /etc/hosts, but they are not recognized.
  >> > > Put 'order local,bind' in your /etc/resolv.conf.  > This
  >> doesnt work.  Perhaps it should be: order hosts,bind

  Howard> I had the same problem and the problem was fixed by doing
  Howard> something a little different:

  Howard> Put this in /etc/hosts.conf:

  Howard> 	order hosts, bind

  Howard> This is what I have in /etc/resolv.conf (hch.com is my bogus
  Howard> domain name):

  Howard> 	search hch.com nameserver 206.84.208.4 nameserver
  Howard> 208.84.208.3

  Howard> Your local nameservers will of course differ.
 
  >> But you really need /etc/nsswitch.conf as mentioned earlier.

  Howard> I agree along with everyone else on this.  Also make sure
  Howard> you have a 127.0.0.1 localhost loopback in your /etc/hosts
  Howard> file.

Just returned from a trip, so I haven't followed this discussion
closely.  My apologies if this has been said already:

/etc/hosts.conf is completely ignored when using a glibc-based system
(i.e., RH4.0 on Alpha or Craftworks v2.0 on Alpha).  The hosts.conf
file was a Linux-specific "hack" that has been replaced by the more
general (and more common) /etc/nsswitch.conf.  The file is described
in the glibc info pages, but (AFAIK) it's identical to the file of the
same name on SVr4 based machines.

	--david

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

             reply	other threads:[~1996-12-08 22:38 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-12-08 22:38 David Mosberger-Tang [this message]
  -- strict thread matches above, loose matches on Subject: below --
1996-12-10  5:14 /etc/hosts ignored bruce a. campbell
1996-12-10 15:29 ` Erik Troan
1996-12-10  4:38 David Mosberger-Tang
     [not found] <199612082238.PAA05693@panda.mosberger>
1996-12-10  2:53 ` Caldera Desktop User
     [not found] <Pine.LNX.3.91.961208155839.191B-100000@vern.hch.com>
1996-12-08 22:37 ` Randy Lee Carpenter
     [not found] <Pine.OSF.3.93.961207192823.25422A-100000@alpha.bgsu.edu>
1996-12-08  1:10 ` Vik Bajaj
1996-12-08 17:00 ` Paul B. Brown
1996-12-08  5:50 Eric Smith
     [not found] <Pine.LNX.3.95.961208110308.670A-100000@rebekka.tu-graz.ac.at>
1996-12-08  4:33 ` Howard Helbein
     [not found] <Pine.OSF.3.93.961207230956.13067A-100000@alpha.bgsu.edu>
1996-12-08  4:23 ` sp0t the w0nder slug
1996-12-08 10:04 ` Fritz Ganter
     [not found] <199612080110.UAA02593@nic-21-3.resnet.upenn.edu>
1996-12-08  4:11 ` Randy Lee Carpenter
     [not found] <199612072257.RAA02184@nic-21-3.resnet.upenn.edu>
1996-12-08  0:31 ` Randy Lee Carpenter
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox