From owner-freebsd-questions@FreeBSD.ORG Mon Mar 28 06:29:20 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 3588316A4CE for ; Mon, 28 Mar 2005 06:29:20 +0000 (GMT) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id ED04043D54 for ; Mon, 28 Mar 2005 06:29:18 +0000 (GMT) (envelope-from emanuel.strobl@gmx.net) Received: (qmail invoked by alias); 28 Mar 2005 06:29:17 -0000 Received: from flb.schmalzbauer.de (EHLO cale.flintsbach.schmalzbauer.de) [62.245.232.135] by mail.gmx.net (mp018) with SMTP; 28 Mar 2005 08:29:17 +0200 X-Authenticated: #301138 From: Emanuel Strobl To: freebsd-questions@freebsd.org, Alexander Chamandy Date: Mon, 28 Mar 2005 08:29:20 +0200 User-Agent: KMail/1.7.2 References: <200503280717.41037@harrymail> In-Reply-To: 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="nextPart1252932.eWko8udWtj"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200503280829.34960@harrymail> X-Y-GMX-Trusted: 0 Subject: Re: 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 06:29:20 -0000 --nextPart1252932.eWko8udWtj Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Am Montag, 28. M=E4rz 2005 08:23 schrieb Alexander Chamandy: > On Mon, 28 Mar 2005 07:17:31 +0200, Emanuel Strobl > > wrote: > > 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.... > > May I ask what you're trying to do with the machine? If you just want > local DNS resolution for experimentation you may try running BIND 9 or > TinyDNS. No DNS experiments, I'm very well equiped (authoritative DNS). It's just th= at=20 my local subnet (productive) has not enough ethernet ports so one=20 test-machine (in another subnet) cannot be connected to the local net and t= he=20 two other subnets are for testing only, so none routes to my productive=20 net.... Everything is working fine, just curiosity.. =2DHarry > > > Thanks, > > > > -Harry --nextPart1252932.eWko8udWtj Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCR6ROBylq0S4AzzwRAprlAJ4le5hVhLrOZbKnAUH5goUD9Q1kiQCdEeBf rZjYDUGfFmVoXrkqKYoxQOc= =6bTL -----END PGP SIGNATURE----- --nextPart1252932.eWko8udWtj--