Re: Digging to the final IP

2014-10-24 Thread John Wobus

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

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: Digging to the final IP

2014-10-24 Thread Doug Barton
It's interesting to see the discussion about trying to turn dig into 
something it isn't. :)  It's a really good DNS diagnostic tool, but if 
you just want to get the answer for a query, host does the job quite 
well, with a lot less fuss.


Doug

___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: DLV verify issue

2014-10-24 Thread Doug Barton

On 10/23/14 4:34 AM, Péter-Zoltán Keresztes wrote:

Hello

I am trying to add a dnssec signed tomain to DLV isc.


Is there a DNSSEC path from this domain up to the root zone? (It would 
be helpful to list what domain it is.) If so, why are you adding it to DLV?


Doug


___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: Digging to the final IP

2014-10-24 Thread Doug Barton

On 10/21/14 8:31 PM, Frank Bulk wrote:

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.


Yep. :)

You can check the return value of the call to get your fail as well. For 
example:


$ host ajklasdfjklasd.com ; echo $?
Host ajklasdfjklasd.com not found: 3(NXDOMAIN)
1

hth,

Doug

___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users