Date: Mon, 28 Mar 2005 01:23:41 -0500 From: Alexander Chamandy <bsdfreak@gmail.com> To: Emanuel Strobl <emanuel.strobl@gmx.net> Cc: freebsd-questions@freebsd.org Subject: Re: Userland "dig/host" for lookups against /etc/hosts? Message-ID: <f420b2a105032722234b949ea3@mail.gmail.com> In-Reply-To: <200503280717.41037@harrymail> References: <200503280717.41037@harrymail>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 28 Mar 2005 07:17:31 +0200, Emanuel Strobl <emanuel.strobl@gmx.net> 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!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f420b2a105032722234b949ea3>