Re: Getting hostname
On Sun, May 04, 2003 at 09:13:40PM +0300, Teemu Hukkanen wrote:
> Holger Kubiak <email@example.com> writes:
> > I want to package a tool. In a shell-script I need access to a hostname
> > belonging to a given IP. If the package host is installed I get:
> > I wanted to grep and awk the output. As you can see this will be
> > difficult. I checked the control-file of bind9-host. There is a line
> > "Provides: host" This is the reason why a line "Required: host" in my
> > debian/control-file do not solve the problem.
> > a) Can I get the hostname in my shell script another way (this could be a
> > question for this list)?
> $ dig -x 220.127.116.11 +short
Dig is not a generic gethostby* frontend, it's provided by bind only.
E-Advies - Emile van Bergen firstname.lastname@example.org
tel. +31 (0)70 3906153 http://www.e-advies.nl