Re: Digging to the final IP

2014-10-20 Thread Josh Kuo
If all you are after is one of the final IP addresses (not the entire 
set), then using a dumb client might be easier. For instance, 'ping'.


$ ping -q -c1 www.google.com
PING www.google.com (203.66.155.113): 56 data bytes


If you want to get more than one IP address, then you'll need an 
intelligent client such as 'host' or 'dig:


$ host www.google.com
www.google.com has address 203.66.155.49
www.google.com has address 203.66.155.50
www.google.com has address 203.66.155.44
...
www.google.com has address 203.66.155.45
www.google.com has IPv6 address 2404:6800:4008:c03::67



On 10/20/14, 12:03 PM, Fajar A. Nugraha wrote:

What are you using this for?

If it's part of a script, it might be easier to just use gethostbyname. For
example, in php: http://php.net/manual/en/function.gethostbyname.php ,
Returns the IPv4 address or a string containing the unmodified hostname on
failure.



___
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


___
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-20 Thread Frank Bulk (iname.com)
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.

 

Thanks,

 

Frank

 

From: Fajar A. Nugraha [mailto:w...@fajar.net] 
Sent: Sunday, October 19, 2014 11:04 PM
To: Frank Bulk
Cc: comp-protocols-dns-b...@isc.org
Subject: Re: Digging to the final IP

 

What are you using this for?

 

If it's part of a script, it might be easier to just use gethostbyname. For 
example, in php: http://php.net/manual/en/function.gethostbyname.php , Returns 
the IPv4 address or a string containing the unmodified hostname on failure.

 

-- 

Fajar

 

 

On Mon, Oct 20, 2014 at 10:43 AM, Frank Bulk frnk...@iname.com 
mailto:frnk...@iname.com  wrote:

Thanks, what I ended up using.

Didn't think that there was anything host could do that dig couldn't do.

Frank


-Original Message-
From: bind-users-boun...@lists.isc.org 
mailto:bind-users-boun...@lists.isc.org 
[mailto:bind-users-boun...@lists.isc.org 
mailto:bind-users-boun...@lists.isc.org ] On Behalf Of Barry Margolin
Sent: Sunday, October 19, 2014 5:00 AM
To: comp-protocols-dns-b...@isc.org mailto:comp-protocols-dns-b...@isc.org 
Subject: Re: Digging to the final IP

In article mailman.1097.1413711142.26362.bind-us...@lists.isc.org 
mailto:mailman.1097.1413711142.26362.bind-us...@lists.isc.org ,
 Sten Carlsen st...@s-carlsen.dk mailto:st...@s-carlsen.dk  wrote:

 Would host be closer to what you want?

Host also tells you about aliases it encounters along the way.



 --
 Best regards

 Sten Carlsen

 No improvements come from shouting:

   MALE BOVINE MANURE!!!

  On 19 Oct 2014, at 08:05, Karl Auer ka...@biplane.com.au 
  mailto:ka...@biplane.com.au  wrote:
 
  On Sun, 2014-10-19 at 00:26 -0500, 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.
 
  Not great, but might be enough to be helpful:
 
dig +nonssearch $1 | egrep -i STATUS|^$1
 
  Regards, K.
 
  --
  ~~~
  Karl Auer (ka...@biplane.com.au mailto:ka...@biplane.com.au )
  http://www.biplane.com.au/kauer
  http://twitter.com/kauer389
 
  GPG fingerprint: EC67 61E2 C2F6 EB55 884B E129 072B 0AF0 72AA 9882
  Old fingerprint: B862 FB15 FE96 4961 BC62 1A40 6239 1208 9865 5F9A
 
 
  ___
  Please visit https://lists.isc.org/mailman/listinfo/bind-users to
  unsubscribe from this list
 
  bind-users mailing list
  bind-users@lists.isc.org mailto:bind-users@lists.isc.org 
  https://lists.isc.org/mailman/listinfo/bind-users

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

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


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

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

 

___
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-20 Thread Phil Mayers

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@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


RE: BIND resource requirements

2014-10-20 Thread Mike Bernhardt
Anyone have some input on this? No one has commented so far.

-Original Message-
From: Mike Bernhardt [mailto:bernha...@bart.gov] 
Sent: Tuesday, October 14, 2014 11:59 AM
To: bind-users@lists.isc.org
Subject: BIND resource requirements

We are currently using 9.8. We have had it on the radar to move to 9.9 but
it's been low priority since 9.8 is still supported for now. But in reading
about all of the alleged issues with 9.10.x as well as possible increased
resource use starting with 9.9.5, I would like to ask a question: We have 2
views and maybe 6 static zones. Is there any significant change in resource
requirements I need to be aware of in moving to 9.9? And are there any known
and intended increased requirements for 9.10 (i.e. not bug-related)?



___
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: BIND resource requirements

2014-10-20 Thread Doug Barton

On 10/20/14 11:50 AM, Mike Bernhardt wrote:

Anyone have some input on this? No one has commented so far.

-Original Message-
From: Mike Bernhardt [mailto:bernha...@bart.gov]
Sent: Tuesday, October 14, 2014 11:59 AM
To: bind-users@lists.isc.org
Subject: BIND resource requirements

We are currently using 9.8. We have had it on the radar to move to 9.9 but
it's been low priority since 9.8 is still supported for now. But in reading
about all of the alleged issues with 9.10.x as well as possible increased
resource use starting with 9.9.5, I would like to ask a question: We have 2
views and maybe 6 static zones. Is there any significant change in resource
requirements I need to be aware of in moving to 9.9? And are there any known
and intended increased requirements for 9.10 (i.e. not bug-related)?


Are you talking authoritative-only data? If so, what's preventing you 
from loading up a BIND 9.9.5 instance in the lab, loading up your data, 
and answering your own question? :)


If your response is, I don't have a lab, then you know your next step.

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


Re: Digging to the final IP

2014-10-20 Thread Mark Andrews

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
   }
   $4 == A { print $5; x=1 }
   END { if (!x) print TIMEOUT }'

Mark


In message 54451077.8030...@imperial.ac.uk, Phil Mayers writes:
 On 20/10/14 14:22, Frank Bulk (iname.com) wrote:
  We=92re using this in a bash shell script.  I don=92t think there=92s a n=
 ative
  shell command to get the IP, so I=92ll 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 unsubscri=
 be from this list
 
 bind-users mailing list
 bind-users@lists.isc.org
 https://lists.isc.org/mailman/listinfo/bind-users
-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: ma...@isc.org
___
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-20 Thread Frank Bulk
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.

Regards,

Frank

-Original Message-
From: bind-users-boun...@lists.isc.org
[mailto:bind-users-boun...@lists.isc.org] On Behalf Of Phil Mayers
Sent: Monday, October 20, 2014 8:39 AM
To: bind-users@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@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


___
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