[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: should resolver read /etc/hosts?

On Fri, 7 Jan 2000, Joop Stakenborg wrote:

> >From the resolver manual pages I read that a hostname lookup should
> use /etc/hosts. My /etc/host.conf has a line like: order hosts,bind.
> But programs like nslookup only query the dns server.
> What is the correct behaviour? Maybe I missed something here?

Yup.  nslookup is the exception, which always uses DNS - that's its job.

Try 'ping', which will use the system resolver.


|  Jelibean aka  | jules@jellybean.co.uk         |  6 Evelyn Rd	       |
|  Jules aka     | jules@debian.org              |  Richmond, Surrey   |
|  Julian Bean   | jmlb2@hermes.cam.ac.uk        |  TW9 2TF *UK*       |
|  War doesn't demonstrate who's right... just who's left.             |
|  When privacy is outlawed... only the outlaws have privacy.          |

Reply to: