On Fri, Apr 11, 2008 at 05:17:56 +0200, NN_il_Confusionario
([EMAIL PROTECTED]) wrote: 

> You probably want
> 
> getent hosts fred
> 
> the man pages for hosts and getent should explain the differences

This is something new I learned today - thank you.

And..

On Thu, Apr 10, 2008 at 22:15:37 -0400, Douglas A. Tutty
([EMAIL PROTECTED]) wrote:

> This should be controlled by nsswitch.conf (config file for the name
> service switch).

I had forgotten about this file, so thank you for the reminder.  I was
confident that 'ping' would work for the OP because 'host' and 'dig' do
not normally look at the hosts file, but I could not remember why.

-- 
Bob Cox.  Stoke Gifford, near Bristol, UK.

Attachment: signature.asc
Description: Digital signature

Reply via email to