Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Mar 2005 07:17:31 +0200
From:      Emanuel Strobl <emanuel.strobl@gmx.net>
To:        freebsd-questions@freebsd.org
Subject:   Userland "dig/host" for lookups against /etc/hosts?
Message-ID:  <200503280717.41037@harrymail>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Dear all,

my testbed lacks of Ethernet Ports so one machine has no connection to my DNS, 
no problem, there is something called /etc/hosts I thought.
It works if I ping 'hostname', but how can I find out the IP of 'hostname' 
from the command line? dig and host want to contact the DNS server, also 
nslookup does, so I think I need a utility which uses the gethostbyname(3) 
function. Is there one? Unfortunately I can't write one myself, at least not 
in a reasonable amount of time....

Thanks,

-Harry

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQBCR5N0Bylq0S4AzzwRAnRqAJwILrRhqKimACowkRkWTW4a4l/wggCfcU/3
0nj8o24uS0EeBgiJp1f5WpA=
=EF3U
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503280717.41037>