Digging to the final IP

Frank Bulk frnkblk at iname.com
Tue Oct 21 03:26:48 UTC 2014

That feature runs on our system, but it doesn't digging through to a final
IP or failure:
	getent ahosts mail.automatedwastesystems.net
returns nothing.



-----Original Message-----
From: bind-users-bounces at lists.isc.org
[mailto:bind-users-bounces at lists.isc.org] On Behalf Of Phil Mayers
Sent: Monday, October 20, 2014 8:39 AM
To: bind-users at lists.isc.org
Subject: Re: Digging to the final IP

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
Please visit https://lists.isc.org/mailman/listinfo/bind-users to
unsubscribe from this list

bind-users mailing list
bind-users at lists.isc.org

More information about the bind-users mailing list