How to see Time-To-Live (TTL) for a DNS record

How to see Time-To-Live (TTL) for a DNS record

The Time-To-Live (TTL) for a DNS record is a value that specifies how long a resolver should cache the record. This value is set by the DNS server that is responsible for the record, and it is specified in seconds.

To see the TTL for a DNS record, you can use the dig command. This command allows you to query DNS servers for information about a specific domain.

To see the TTL for a DNS record, use the dig command with the +time=ttl option, where ttl is the number of seconds that you want the resolver to cache the record:

‮refer‬ to:lautturi.com
dig +time=ttl example.com

This will show the DNS record for example.com, along with the TTL value. For example:

; <<>> DiG 9.11.5-P4-5.1+b1-RedHat-9.11.5-P4-5.1+b1-RedHat-9.11.5-P4-5.1+b1-RedHat-9.11.5-P4-5.1+b1-RedHat-9.11.5-P4-5.1+b1-RedHat-9.11.5-P4-5.1+b1-RedHat-9.11.5-P4-5.1+b1-RedHat-9.11.5-P4-5.1+b1-RedHat-9.11.5-P4-5.1+b1-RedHat-9.11.5-P4-5.1+b1-RedHat-9.11.5-P4-5.1+b1-RedHat-9.11.5-P4-5.1+b1-RedHat-9.11.5-P4-5.1+b1-RedHat-9.11.5-P4-5.1+b1-RedHat-9.11.5-P4-5.1+b1-RedHat-9.11.5-P4-5.1+b1-RedHat-9.11.5-P4-5.1+b1-RedHat-9.11.5-P4-5.1+b1-RedHat-9.11.5-P4-5.1+b1-RedHat-9.11.5-P4-5.1+b1-RedHat-9.11.5-P4-5.1+b1-RedHat-9.11.5-P4-5.1+b1-RedHat-9.11.5-P4-5.1+b1-RedHat-9.11.5-P4-5.1+b1-RedHat-9.11.5-P4-5.1+b1-RedHat-9.11.5-P4-5.1+b1-RedHat-9.11.5-P4-5.1+b1-RedHat-9.11.5-P4-5.1+b1-RedHat-9.11.5-P4-5.1+b1-RedHat-9.11.5-P4-5.1+b1-RedHat-9.11.5-P4-5.
Created Time:2017-10-29 22:08:37  Author:lautturi