Subject: Re: Can't find a host.
To: None <current-users@NetBSD.org>
From: David Young <dyoung@pobox.com>
List: current-users
Date: 09/10/2007 12:10:00
On Mon, Sep 10, 2007 at 06:23:56PM +0200, Lubomir Sedlacik wrote:
> On Mon, Sep 10, 2007 at 10:38:21AM -0500, Jeremy C. Reed wrote:
> > The host tool uses DNS (/etc/resolv.conf) and not /etc/hosts file.
> > 
> > Use ping or pkgsrc/net/gethost.
> 
> ITYM, getent(1)

getent(1) does not seem to resolve hostnames to both IPv4 and IPv6
numbers.  Is that a known bug?  For example,

elmendorf:~> getent hosts cuw
64.198.255.5      cuw.ojctech.com
elmendorf:~> host cuw 
cuw.ojctech.com has address 64.198.255.5
cuw.ojctech.com has IPv6 address 2002:40c6:ff01:1:207:e9ff:fe26:9c5c

Dave

-- 
David Young             OJC Technologies
dyoung@ojctech.com      Urbana, IL * (217) 278-3933 ext 24