Subject: Re: /etc/hosts and DNS
To: Jeremy C. Reed <reed@reedmedia.net>
From: Luke Mewburn <lukem@NetBSD.org>
List: netbsd-help
Date: 01/15/2005 21:43:29
--LpcCHpaCAbC4X43d
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Fri, Jan 14, 2005 at 08:43:56AM -0800, Jeremy C. Reed wrote:
| You may want to try my pkgsrc/net/gethost package. From the DESCR:
|=20
| gethost does hostname and IP lookups. It supports IPv6.
| It uses standard libraries and it doesn't necessarily
| use DNS resolver only. So it is useful for troubleshooting
| /etc/hosts, for example. gethost can also time each lookup
| to show the elapsed time in seconds. Multiple lookups
| can be done on one command-line.
The getent(1) command in NetBSD-current also supports lookups based on
nsswitch.conf(5). E.g.,
getent hosts 127.0.0.1
getent passwd root
--LpcCHpaCAbC4X43d
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)
iD8DBQFB6PPRpBhtmn8zJHIRAsKcAJ4mf/x/pfihn/KxuKHlB9W8jj/pkwCffKiN
/36lLiFcuXkgtIMsdkTvv+c=
=wxKi
-----END PGP SIGNATURE-----
--LpcCHpaCAbC4X43d--