From owner-freebsd-questions@FreeBSD.ORG Mon Mar 28 06:23:41 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 E87C916A4CE for ; Mon, 28 Mar 2005 06:23:41 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8ECF643D2F for ; Mon, 28 Mar 2005 06:23:41 +0000 (GMT) (envelope-from bsdfreak@gmail.com) Received: by rproxy.gmail.com with SMTP id 1so839178rny for ; Sun, 27 Mar 2005 22:23:41 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=daZ/AipQG18UrpncBAO1RBEwqJqUnVffd5yquMYLt9tiO/UxxIgiYhu919J50fBrDX9mLjaHY6GS/1EDX80G4Mw66SKOgGKrKyrGZXs/c08ORWfWYC9oVIq7VhlVocSz+pYsGaVYmjRlRkPc8/yosycrZba2cBy/FSn7s6Js9Tk= Received: by 10.38.8.30 with SMTP id 30mr776020rnh; Sun, 27 Mar 2005 22:23:41 -0800 (PST) Received: by 10.38.179.44 with HTTP; Sun, 27 Mar 2005 22:23:41 -0800 (PST) Message-ID: Date: Mon, 28 Mar 2005 01:23:41 -0500 From: Alexander Chamandy To: Emanuel Strobl In-Reply-To: <200503280717.41037@harrymail> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: <200503280717.41037@harrymail> cc: freebsd-questions@freebsd.org Subject: Re: Userland "dig/host" for lookups against /etc/hosts? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Alexander Chamandy List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Mar 2005 06:23:42 -0000 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. > Thanks, > > -Harry > > > -- Best wishes, Alexander G. Chamandy Webmaster www.bsdfreak.org Your Source For BSD News!