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

VanLUG Email Archive

Re: /etc/hosts

Luc Dierckx
Mon, 17 Aug 1998 10:22:19 -0700

On Fri, Aug 14, 1998 at 05:00:22PM -0700, 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?

Vlad

IRIX does not use nsswitch.conf. Precedence for hostname lookup
is set in /etc/resolv.conf.

Other then the standard nameserver and domain entries, IRIX has
the keyword "hostresorder". From the man page:

========
The following configuration option applies to gethostbyname
and gethostbyaddr:

hostresorder

A list specifying the ordering of host lookup services used by
gethostbyname and gethostbyaddr. The recognized services and
their keywords are Sun's network information service (nis), BIND
(bind) and /etc/hosts (local). The keywords are separated by
white space or a slash (/). Normally, if a service cannot find
the answer or is not running, the next service in the list is
queried. The slash separator indicates the previous service in
the list is authoritative: even if it cannot find the answer,
the search is terminated. For example,

hostresorder bind local

specifies that BIND is checked first (bypassing NIS) and if no
answer is found, the file /etc/hosts is then checked. At least
one service keyword must be listed. The default is nis / bind /
local, meaning that NIS and BIND have authoritative information
if they are available.

========

Hope this helps. I am not an expert on SGI either. Just need to
manage a handfull of them.

--
Luc Dierckx 
Systems Manager 
Laboratory for Computational Intelligence
University of British Columbia