From owner-freebsd-questions@FreeBSD.ORG Mon Mar 28 05:17:30 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D30E416A4CE for ; Mon, 28 Mar 2005 05:17:30 +0000 (GMT) Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id BCD5643D4C for ; Mon, 28 Mar 2005 05:17:29 +0000 (GMT) (envelope-from emanuel.strobl@gmx.net) Received: (qmail invoked by alias); 28 Mar 2005 05:17:28 -0000 Received: from flb.schmalzbauer.de (EHLO cale.flintsbach.schmalzbauer.de) [62.245.232.135] by mail.gmx.net (mp027) with SMTP; 28 Mar 2005 07:17:28 +0200 X-Authenticated: #301138 From: Emanuel Strobl To: freebsd-questions@freebsd.org Date: Mon, 28 Mar 2005 07:17:31 +0200 User-Agent: KMail/1.7.2 X-Birthday: 10/06/72 X-CelPhone: +49 173 9967781 X-Tel: +49 89 18947781 X-Country: Germany X-Address: Munich, 80686 X-OS: FreeBSD MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1274573.tpl6FNyWsL"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200503280717.41037@harrymail> X-Y-GMX-Trusted: 0 Subject: Userland "dig/host" for lookups against /etc/hosts? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Mar 2005 05:17:30 -0000 --nextPart1274573.tpl6FNyWsL Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Dear all, my testbed lacks of Ethernet Ports so one machine has no connection to my D= NS,=20 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'= =20 from the command line? dig and host want to contact the DNS server, also=20 nslookup does, so I think I need a utility which uses the gethostbyname(3)= =20 function. Is there one? Unfortunately I can't write one myself, at least no= t=20 in a reasonable amount of time.... Thanks, =2DHarry --nextPart1274573.tpl6FNyWsL Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCR5N0Bylq0S4AzzwRAnRqAJwILrRhqKimACowkRkWTW4a4l/wggCfcU/3 0nj8o24uS0EeBgiJp1f5WpA= =EF3U -----END PGP SIGNATURE----- --nextPart1274573.tpl6FNyWsL--