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.fr<http://www.google.fr> and i want to know what is the TTL of www.google.com<http://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