$ dig +nocmd +noall +answer example.com
example.com. 7139 IN A 22.214.171.124
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 126.96.36.199