Retrieve the DNS TTL values


$ dig +nocmd +noall +answer example.com
example.com. 7139 IN A 93.184.216.34

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 a.iana-servers.net is authoritative for this domain:


$ dig +nocmd +noall +answer @a.iana-servers.net example.com
example.com. 86400 IN A 93.184.216.34

Leave a Reply

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