Digging to the final IP
John Wobus
jw354 at cornell.edu
Fri Oct 24 16:13:44 UTC 2014
On Oct 21, 2014, at 4:00 PM, Evan Hunt wrote:
> On Tue, Oct 21, 2014 at 12:07:15PM -0700, Warren Kumari wrote:
>>> dig A $name | awk '$0 ~ /status/ && $0 !~ /status: NOERROR,/ {
>>> sub(",", "", $6 ); print $6; x=1
>>> }
>>> $4 == "A" { print $5; x=1 }
>>> END { if (!x) print "TIMEOUT" }'
>>
>>
>> Because, not everyone is as stunningly brilliant as you?
>>
>> To a non-zero population of this list the above looks like line-
>> noise...
>
> Could be worse, could be perl...
But if perl were acceptable,
perl -e 'printf "%vd\n", (gethostbyname "example.com")[4]'
John
More information about the bind-users
mailing list