While working on linux and AIX I found the /usr/bin/host command on the
linux system only supports the new version which does not honor the
/etc/hosts file anymore but looks up hosts through the DNS only. 
AIX supports both versions of the host command. The old one which can be
configured via /etc/netsvc.conf (repsectively /etc/host.conf on linux) for
the order of the lookup sequence. The new version is called via host -n.

The old version is handy to look up hosts in the /etc/hosts when there
is no net connection open. The new version retuns "host not found, try
again" if the system has no access to a DNS. The ping, telnet and other
net commands do query the /etc/hosts file. 

Is there an old version of the host command for linux around somewhere ?
Or which command is to be used to look up entries in the /etc/hosts file?

Thanks,
Eva


-====---====---====---====---====---====---====---====---====---====---====-
 to unsubscribe email "unsubscribe linux-admin" to [EMAIL PROTECTED]
 See the linux-admin FAQ: http://www.kalug.lug.net/linux-admin-FAQ/

Reply via email to