Re: Digging to the final IP

2014-10-21 Thread Warren Kumari
On Mon, Oct 20, 2014 at 1:19 PM, Mark Andrews wrote: > > Why do we need to have a option to dig to massage the results into > every possible different form? > > dig A $name | awk '$0 ~ /status/ && $0 !~ /status: NOERROR,/ { > sub(",", "", $6 ); print $6; x=1 >

Re: Digging to the final IP

2014-10-21 Thread Evan Hunt
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

RE: Digging to the final IP

2014-10-21 Thread Darcy Kevin (FCA)
We have people on this list who are incapable of programming simple text extraction in *at*least*one*language*? Really? No-one said a _scripting_ language had to be used. Feel free to use C (with "sharp" or "plusplus", if you wish), or Pascal, or Smalltalk, or LISP, or Fortran, or S/370 Assembl

Re: Digging to the final IP

2014-10-21 Thread Dave Knight
On Oct 19, 2014, at 1:26, Frank Bulk wrote: > Is there a dig option that will list out the final (IPs) or query result?? > By default, even with +short, it can list intermediate CNAME(s) and not what > IP(s) that CNAME may have. > > For example, > root@nagios:/tmp# dig mail.automatedwa

Re: Digging to the final IP

2014-10-21 Thread Novosielski, Ryan
*Note: UMDNJ is now Rutgers-Biomedical and Health Sciences* || \\UTGERS |-*O*- ||_// Biomedical | Ryan Novosielski - Senior Technologist || \\ and Health | novos...@rutgers.edu- 973/972.0922 (2x0922) || \\ Sciences

RE: Digging to the final IP

2014-10-21 Thread Frank Bulk
Dave, Thanks for the input, but what I was looking for was a dig command that returns the IP(s) or a fail. It looks like the host command is the right solution in this case, not dig. Kind regards, Frank -Original Message- From: Dave Knight [mailto:d...@knig.ht] Sent: Tuesday, October

Re: Digging to the final IP

2014-10-21 Thread LuKreme
> On 21 Oct 2014, at 19:20 , Dave Knight wrote: > > $ dig +noall +answer dave.knig.ht in a | egrep 'IN\tA\t' | cut -f6 > 216.235.14.46 Interesting. This works for me: dig +noall +answer home.kreme.com in a | egrep '\tA' | cut -f5 but on your example, it requires -f6 And yet, the outputs appe

Re: Digging to the final IP

2014-10-21 Thread David Ford
# dig +noall +answer dave.knig.ht a|awk '/IN\tA\t/ {print $NF}' 216.235.14.46 signature.asc Description: OpenPGP digital signature ___ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing li

Re: Digging to the final IP

2014-10-21 Thread Jim Young
On 10/22/14 12:08 AM, "LuKreme" wrote: >> On 21 Oct 2014, at 19:20 , Dave Knight wrote: >> >> $ dig +noall +answer dave.knig.ht in a | egrep 'IN\tA\t' | cut -f6 >> 216.235.14.46 > >Interesting. This works for me: > >dig +noall +answer home.kreme.com in a | egrep '\tA' | cut -f5 > >but on your e