• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 953
  • Last Modified:

How to determine DNS TTL Remaining

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
BladesAway
Asked:
BladesAway
1 Solution
 
diperspCommented:
Nslookup with -debug should do what you need.
0
 
BladesAwayAuthor Commented:
Perfect.

For others, the syntax is:

nslookup -debug - nameserver

;where name server is the IP or hostname of the DNS server.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now