Retrieve the DNS TTL values

$ dig +nocmd +noall +answer 7139 IN A

Note: If your default DNS server is not the authoritative server for the zone you are digging dig will show the time remaining (until the next refresh) instead of the raw TTL value in this position.

You can work around this by directing dig to specifically use one of the domain’s servers, for example I know that is authoritative for this domain:

$ dig +nocmd +noall +answer 86400 IN A

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.