Checking TTL DNS

I often need a way to check the actual TTL value of a DNS record.

To do this you need to check the authoritative nameserver for that domain. I wrote a quick bash script that takes a list of DNS records and spits out authoritative nameserver info including the TTL.

Please let me know if you find it useful!