Solved

How to determine DNS TTL Remaining

Posted on 2014-01-02
2
740 Views
Last Modified: 2014-01-02
I am wondering if there is a way to determine how long a cached DNS record has been on a DNS server and subsequently how long it will be before the record expires and the DNS server will do a look up to the domains DNS servers.

For example, if I do not have direct access to my ISPs DNS server is there away I can do a query against that server via nslookup for example, and determine how long it will be before that DNS server will dump www.dogpile.com from its cache and requery the authoritative DNS server for dogpile.com.  I am not looking simply for the TTL as I can get that.  What I want I am looking for is how many seconds to go before the TTL expires on the query/caching server.
0
Comment
Question by:BladesAway
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Accepted Solution

by:
dipersp earned 500 total points
ID: 39752794
Nslookup with -debug should do what you need.
0
 

Author Closing Comment

by:BladesAway
ID: 39752846
Perfect.

For others, the syntax is:

nslookup -debug - nameserver

;where name server is the IP or hostname of the DNS server.
0

Featured Post

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article explains how a domain name may be inadvertently appended to all DNS queries. This exhibits as described below. (CODE)And / Or: (CODE) Cause This issue can occur in either of these two scenarios. EITHER 1. A Primary DNS S…
BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question