Re: ping hostnames ala windows ping.exe?
On Fri, Oct 10, 2008 at 08:31:45AM +0300, Andrei Popescu wrote:
> $ host bixi
> bixi has address 192.168.77.76
This only resolves host names through DNS. e.g. ignores your hosts file.
You can ask libc's name resolver directly:
$ getent hosts bixi
$ getent hosts yahoo.com
206.190.60.37 yahoo.com
68.180.206.184 yahoo.com
--
Tzafrir Cohen | tzafrir@jabber.org | VIM is
http://tzafrir.org.il | | a Mutt's
tzafrir@cohens.org.il | | best
ICQ# 16849754 | | friend
Reply to: