*BSD News Article 14155


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!haven.umd.edu!uunet!pipex!uknet!uknet!cf-cm!paul
From: paul@isl.cf.ac.uk (Paul)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Name resolver and /etc/hosts
Message-ID: <1993Apr7.104440.21490@cm.cf.ac.uk>
Date: 7 Apr 93 10:44:38 GMT
References: <1psio2$oba@usenet.INS.CWRU.Edu>
Sender: news@cm.cf.ac.uk (Network News System)
Organization: /usr/local/lib/rn/organisation
Lines: 23

In article <1psio2$oba@usenet.INS.CWRU.Edu> david@jake.EEAP.CWRU.Edu (David Nerenberg) writes:
>Has anyone else noticed name resolver probelms?  Both ljo and I are having
>major trouble getting the machine to recognize localhost and I believe it
>is tied into the name resolver.  If I put an alias to a machine in my
>/etc/hosts file, and I try to ping it, it never sees it.  The machine
>appears to look only at the name server's responses rather then try
>a local /etc/hosts lookup first.  This is preventing me from pinging
>localhost since my nameserver does not have a localhost.  In the same
>way, it prevents me from pinging asdf as any host since this is also
>not in my name server.  I can however set a by user local hostaliases
>file and use that, but I would realy like something to be system wide.
>

The current resolver does behave the way you describe. Get resolv+ which
allows you to configure the order of searches, so you can set it to
check /etc/hosts first and then try DNS.

Can't remember where to get it but archie should have it listed.

-- 
  Paul Richards, University of Wales, College Cardiff

  Internet: paul@isl.cf.ac.uk