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

Re: response from the host command for a private address listed in /etc/hosts



In <COL113-W487AF99B7580E992E8CEF5EF630@phx.gbl>, Peter Crawford wrote:
>What response should come from `host myserver` executed
>on myworkstation?  By consulting /etc/hosts,

From man 1 host:
host is a simple utility for performing DNS lookups.

So, it always uses DNS, not paying attention to your settings in 
nsswitch.conf.  In particular, it doesn't read /etc/hosts because it doesn't 
use the "files" NS module.
-- 
Boyd Stephen Smith Jr.           	 ,= ,-_-. =.
bss@iguanasuicide.net            	((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy 	 `-'(. .)`-'
http://iguanasuicide.net/        	     \_/

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: