Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Andi Hechtbauer <anti@spin.de>
Subject: Re: dual ethernet, glibc and name resolving
Date: 21 Jul 1997 13:39:51 +0200	[thread overview]
Message-ID: <db20c4c67644568a2887634acc904e4f.axp-list@archive.invalid> (raw)

Stephen Williams <steve@icarus.icarus.com> writes:

> steve@icarus.icarus.com said:
> > I  tried to get my Linux/alpha machine to support 2 ethernet cards 
> > and I ran into some difficulties. 

I don't have multiple ethercards, but I'm experiencing the same sort of
trouble with aliased net-devices (eth0:1, eth0:2 ...);

One thing I found out rather soon is that w/out /etc/nsswitch.conf the
libc (glibc-0.961212-3) is not able (or not willing) to read my /etc/hosts 
at all.
Of course this not only bugs ifconfig and route, but everything that uses
resolver(3) routines.
It is not sufficient to put "order hosts,bind" into the /etc/host.conf.
So I came around to throw in a minimal /etc/nsswitch.conf w/ just one
line: hosts   files dns.

Another thing that hung up the /etc/rc.d/init.d/network process was that
I had two nameserver entries in the resolv.conf, one local one remote: 
It seems ifconfig and route tried to contact that remote nameserver before 
having built a route to it, although there would have been sufficient
information in /etc/hosts or the local 127.0.0.1 nameserver.
Why do ifconfig and route try to reverse-lookup IP's anyway? Is there a
hidden option to turn that off? (I've been considering mangling the sources
and recompile, but then, that would have been all the wrong approach to solve
this ... bug(?).) 

> [...]
> So if I manualy make sure that the lo device is configured before all the
> others, then everything works just fine.

Doesn't work for me. at least not all the time. I haven't got around as to
why it sometimes just runs ok. 

> Something in glibc is assuming the presence of lo, whether it is there or
> not. This is, in this case, not correct. My work-around is to edit the
> rc.d/init.d/network script to always start the lo device before any others.

The libc seems to be compiled for a rather specific setup at least. And
not reading /etc/hosts without a nsswitch.conf can not be called a feature.

> Is there a better fix out there (or is it up to me to download glibc and
> fix it?)

I'll give looking at it a try, but then, I'm not considering myself very good
at this kind of stuff, and I'd just hate running into other problems with
my 'customized' libc...
Perhaps we should contact some guru at redhat? Anyone from Redhat listening,
who is into this kind of things?

Ah well, my system looks like this:
alpha pc164, redhat 4.1 (some packets from 4.2),
kernel 2.0.30 (built from pristine sources w/ Digital's new patch)
alternate 2.0.30 kernel from redhat rpm. (same effects)
glibc-0.961212-3
glibc-static-0.961212-3
glibc-devel-0.961212-3
net-tools-1.32.alpha-2
initscripts-2.81-1
setup-1.7-1

Bye,

-- 
Andi Hechtbauer                                                 anti@spin.de 
System Administration                               voice: +49 941 94 65 939
SPiN GmbH                  http://www.spin.de/        fax: +49 941 94 65 938  
---------- web design - java chats - guestbooks - java/cgi coding ----------

--
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:[~1997-07-21 11:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-07-21 11:39 Andi Hechtbauer [this message]
  -- strict thread matches above, loose matches on Subject: below --
1997-07-21  2:25 dual ethernet, glibc and name resolving Stephen Williams
1997-07-21  1:27 Stephen Williams
1997-07-20  0:56 Stephen Williams
1997-07-18 17:43 Stephen Williams
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