Find DNS TTL on Windows and MacOS

Sure, here’s how you can find the Time to Live (TTL) for a DNS record on Windows and MacOS. Please remember that you should have the necessary permissions to execute these commands.

Windows:

Windows users can use the built-in nslookup command to get the DNS record information:

1. Open Command Prompt.
2. Type the following command and hit enter:

nslookup -debug www.cordero.me

The debug option gives a more verbose output, and within the received output, look for “ANSWERS SECTION” where you can find the TTL of the record.

You can also use Powershell:

Resolve-DnsName -Name www.cordero.me -Type A

macOS:

On MacOS, you can use the dig command:

1. Open Terminal.
2. Type the following command and hit enter:

dig www.cordero.me

In the output, look for a line starting with `www.cordero.me.`. This line contains multiple fields separated by spaces. The second field will be the TTL of the DNS record.

Please note that the results might vary based on your DNS resolver settings and if the TTL has already been cached, the TTL may show the remaining time until the cache expires.