Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-07-2006, 11:50 PM   #1
Registered: Sep 2006
Posts: 42

Rep: Reputation: 15
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?

Old 12-08-2006, 03:07 AM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971
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.
Old 12-08-2006, 05:20 AM   #3
Senior Member
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
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).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS lookup again before expiring TTL kubungi Linux - Networking 1 09-30-2006 04:54 PM
TTL value gabsik Linux - Networking 7 04-21-2006 05:07 AM
IP TTL help SBK_bg Linux - Networking 2 09-29-2005 10:18 AM
Dns TTL (?) JJX Linux - Networking 0 11-03-2004 03:52 PM
TTL in DNS filesDo u kn alaios Linux - Networking 1 10-26-2003 05:32 PM

All times are GMT -5. The time now is 07:17 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration