How to use dig to get the TTL (time to load) of a domain

January 06, 2012

Obtaining the TTL for a domain is quite simple.

Open up a terminal and meet your new friend 'dig'.

Type the follow, replacing my website url with your own.

dig +nocmd dhewy.dev +noall +answer

The response you will get is:-

dhewy.dev.	3496	IN	A	87.124.86.12

Your friend is 3496 this is your domains TTL.

Which is 3,496 seconds, or almost 1 hour.

Enjoy.


About me

Hello! I'm David Heward, how are you going? I'm a Senior Devops/Build Engineer, specialising in AWS & Cloud Automation. Based in London. Strong 10+ year background in Software development. Have a read of my blog. Have a look at some of my working projects. Contact me at @davehewy or on Linkedin.