Re: Getting hostname
Holger Kubiak <firstname.lastname@example.org> 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