Traduisez - Übersetzen - Traduzca - Traduza - Tradurre - Translate

VanLUG Email Archive

Re: /etc/hosts

Vlad Petersen
Fri, 14 Aug 1998 20:04:11 -0700

Tim Baur wrote:
>
> On Fri, 14 Aug 1998, Vlad Petersen wrote:
>
> > I noticed that the Irix box is missing /etc/nsswitch.conf file where I
> > presume it is configured in what order to look for hostnames. I copied
> > my Linux's /etc/nsswitch to IRIX and it didn't work. If anyone else
> > has an Irix machine can you please send me your /etc/nsswitch.conf or
> > whatever it needs?
>
> Hmm, yeah sounds like that is your problem. But the format of the
> nsswitch.conf is the same on almost every OS. Solaris, Linux, the format
> is the same "hosts: files dns". On the two IRIX machines I run, we're not
> using nsswitch.conf but rather, resolv.conf displays:
>
> hostresorder local bind

Are you sure you are not quoting /etc/host.conf or similar? Accordingly
to my Irix docs, /etc/resolv.conf should contain names and IPs of machines
whom we send name lookup requests to, e.g

vlad@klingon$ cat /etc/resolv.conf
search localhost klingon.assimilator.net
nameserver 127.0.0.1
nameserver 10.0.0.2

(On Linux)

or

bash# cat /etc/resolv.conf
search godzilla.gravis.com
nameserver 204.50.210.1
nameserver 204.50.210.2

(On Irix) -- both work fine. On the other hand, what you quoted sounds similar
to:

>$ cat /etc/host.conf
order hosts, bind
multi on

I am not trying to question your knowledge, just want to doublecheck.

> I'm not even 100% positive that IRIX uses nsswitch. But I might be wrong.

BTW, are you using a public version of Bind that you can get with sources
and install yourself or a precompiled/proprietary one?

> And that should fix that problem, looking to /etc/hosts first, if it
> fails, then going to dns.
>
> --
> Tim Baur
> xcert software inc.

-- 
     Vlad Petersen       |     <vladimip at uniserve dot com>
 #include <disclaimer.h> |   *Good pings come in small packets*
     Vancouver, BC       |    Windows: for IQs smaller than 95
      SIGSIG -- signature too long (core dumped)