Re: Hi;

2012-05-10 Thread WBrown
William Thierry wrote on 05/10/2012 08:02:57 AM:

 i'm trying to have a TTL of a zone just by typing a command, but i 
 can't seen which command line i can used to have the solution.
 
 Can someone have an idea? is it possible to found that?
 
 PS: The zone file is not created by me. For example, i made a dig 
+dnssec 
 www.google.fr and i want to know what is the TTL of www.google.com 
 not the period of querry.

Ask an authoritative server:

cowman@ns-homer:~$ dig @ns1.google.com www.google.com

;  DiG 9.9.0  @ns1.google.com www.google.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; -HEADER- opcode: QUERY, status: NOERROR, id: 32683
;; flags: qr aa rd; QUERY: 1, ANSWER: 7, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;www.google.com.IN  A

;; ANSWER SECTION:
www.google.com. 604800  IN  CNAME   www.l.google.com.
www.l.google.com.   300 IN  A   173.194.73.103
www.l.google.com.   300 IN  A   173.194.73.147
www.l.google.com.   300 IN  A   173.194.73.105
www.l.google.com.   300 IN  A   173.194.73.106
www.l.google.com.   300 IN  A   173.194.73.99
www.l.google.com.   300 IN  A   173.194.73.104

;; Query time: 35 msec
;; SERVER: 216.239.32.10#53(216.239.32.10)
;; WHEN: Thu May 10 08:12:13 2012
;; MSG SIZE  rcvd: 148



Confidentiality Notice: 
This electronic message and any attachments may contain confidential or 
privileged information, and is intended only for the individual or entity 
identified above as the addressee. If you are not the addressee (or the 
employee or agent responsible to deliver it to the addressee), or if this 
message has been addressed to you in error, you are hereby notified that 
you may not copy, forward, disclose or use any part of this message or any 
attachments. Please notify the sender immediately by return e-mail or 
telephone and delete this message from your system.
___
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: Hi;

2012-05-10 Thread Todd Snyder
When you do a dig, the TTL is the 2nd column:

;; ANSWER SECTION:
www.google.com. 604800  IN  CNAME   www.l.google.com.
www.l.google.com.   300 IN  A   74.125.225.20
www.l.google.com.   300 IN  A   74.125.225.19
www.l.google.com.   300 IN  A   74.125.225.18
www.l.google.com.   300 IN  A   74.125.225.16
www.l.google.com.   300 IN  A   74.125.225.17


Although, it will provide the TTL of the cached record if the record is cached, 
so it may not be the original TTL.

If you want to know the TTL, you can query the authoritative nameservers 
directly for the record:

# get their nameservers
# dig google.com NS

;; ANSWER SECTION:
google.com. 345600  IN  NS  ns4.google.com.
google.com. 345600  IN  NS  ns1.google.com.
google.com. 345600  IN  NS  ns3.google.com.
google.com. 345600  IN  NS  ns2.google.com.

# pick one, and ask for the record you want
# dig @ns4.google.com www.google.com A +norec

;; ANSWER SECTION:
www.google.com. 604800  IN  CNAME   www.l.google.com.
www.l.google.com.   300 IN  A   74.125.225.148
www.l.google.com.   300 IN  A   74.125.225.147
www.l.google.com.   300 IN  A   74.125.225.144
www.l.google.com.   300 IN  A   74.125.225.146
www.l.google.com.   300 IN  A   74.125.225.145

Cheers


From: bind-users-bounces+tsnyder=rim@lists.isc.org 
[mailto:bind-users-bounces+tsnyder=rim@lists.isc.org] On Behalf Of William 
Thierry SAMEN
Sent: Thursday, May 10, 2012 8:03 AM
To: bind-users@lists.isc.org
Subject: Hi;

Hi, Bind'ers,

i'm trying to have a TTL of a zone just by typing a command, but i can't seen 
which command line i can used to have the solution.

Can someone have an idea? is it possible to found that?

PS: The zone file is not created by me. For example, i made a dig +dnssec 
www.google.frhttp://www.google.fr and i want to know what is the TTL of 
www.google.comhttp://www.google.com
not the period of querry.

Thx

--
Cordialement.
Thierry SAMEN.

-
This transmission (including any attachments) may contain confidential 
information, privileged material (including material protected by the 
solicitor-client or other applicable privileges), or constitute non-public 
information. Any use of this information by anyone other than the intended 
recipient is prohibited. If you have received this transmission in error, 
please immediately reply to the sender and delete this information from your 
system. Use, dissemination, distribution, or reproduction of this transmission 
by unintended recipients is not authorized and may be unlawful.
___
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