[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Getting hostname



Hi,

On Sun, May 04, 2003 at 09:13:40PM +0300, Teemu Hukkanen wrote:

> Holger Kubiak <debian@holger-kubiak.de> 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 193.99.144.71 +short
> www.heise.de.

Dig is not a generic gethostby* frontend, it's provided by bind only.

Cheers,


Emile.

-- 
E-Advies - Emile van Bergen           emile@e-advies.nl      
tel. +31 (0)70 3906153           http://www.e-advies.nl    



Reply to: