-   Linux - Networking (
-   -   DNS TTL Question (

zok 12-07-2006 11:50 PM

DNS TTL Question

The person who handles our DNS is out for a short while so I'm trying to find the answer to a question.

I was asked -- if I understand the question correctly --if our nameserver has a minimum TTL which overrides the TTL from authoritative nameservers for cached records. Apparently, an ISP which hosts a domain has a very short TTL in order to work correctly for failover purposes. A lot of people at our institution check this website so he wanted to verify that we don't ignore the TTL from the ISP's DNS server because it's too low and use a higher TTL instead. I'm not too sure how to find out this info. Does anyone know how?


acid_kewpie 12-08-2006 03:07 AM

well essentially you can see the TTL's and other associated information about resolved dns names with the "dig" tool. do a dig against your local server, and the remote server and compare the TTL's. note that TTL's (obviosuly) change over time, and are nopt synchronous across servers, so you need to find the higheste TTL returned.

chort 12-08-2006 05:20 AM

Try using dig to view the TTL of or Both of them have CNAME records for www that have a certain TTL, and the CNAME resolves to several A records with even shorter TTLs. If you keep doing dig over and over again you will notice the TTL getting lower (as it expires from your nameserver's cache).

You should get a TTL of 300 for the A records from the CNAME of and TTL of 60 for the A records resolved from the CNAME of (assuming it's not already cached).

All times are GMT -5. The time now is 12:23 PM.