Digging to the final IP

Phil Mayers p.mayers at imperial.ac.uk
Mon Oct 20 13:39:03 UTC 2014

On 20/10/14 14:22, Frank Bulk (iname.com) wrote:
> We’re using this in a bash shell script.  I don’t think there’s a native
> shell command to get the IP, so I’ll use a mixture of host and dig as
> necessary.

If your system has it, try "getent" e.g.

getent ahosts hostname

More information about the bind-users mailing list