The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Operating Systems
> Windows Help
|
Problems with IE DNS cache
Discuss Problems with IE DNS cache in the Windows Help forum on Dev Shed. Problems with IE DNS cache Windows Help forum discussing tips, tricks, configurations, and more. Microsoft Windows is one of the most popular operating systems due to its ease of use.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

July 8th, 2011, 10:05 AM
|
|
Registered User
|
|
Join Date: Jun 2011
Posts: 8
Time spent in forums: 1 h 36 m 34 sec
Reputation Power: 0
|
|
|
Problems with IE DNS cache
If Internet Explorer caches an IP for a domain and that domain changes IP addresses (the TTL is low) and the old IP is still accessible meaning it's valid somewhere, just not to the original link, IE will continue to access this address until A)the TTL runs out and a new request is made (assume IE sets it to 30minutes because the TTL was too low for its tastes) B)the old IP dies and isn't accessible in which case IE performs a DNS lookup. I've found that after that 30minutes, if the link is still active, but isn't linked to the original domain, IE will continue to use that address until there is at least a 2.5minute break with NO TCP activity. Why is this?/Is there anyway to change that?
For a clearer picture, image two computers constantly trading addresses or something like that. Both have a Web server so they are both accessible via IE.
Thanks in advance
|

July 8th, 2011, 10:35 AM
|
 |
Automagically Delicious
|
|
Join Date: May 2004
Location: 127.0.0.2 - I live next door.
|
|
Ok, hold your horses. You're throwing around a lot of names without actually making all the right pieces fit together, just jamming them in like forcing a puzzle piece that doesn't actually belong.
IE - Has NO DNS cache (as far as I am aware.) The OS itself caches DNS. You can see this by opening a command prompt and typing in
Code:
ipconfig /displaydns
I'd recommend outputting this to a file.
Secondly, a DNS lookup is only performed on hostnames, not IPs. You probably realize this, but I'm just spelling it out. If you resolve a hostname once, your cache will keep it and when you attempt to retrieve it again, you will only have to go so far as to look at your cache instead of the actual DNS Server itself.
Therefore, if you go to say www.google.com you will resolve that to (made up) 158.77.4.92. Your computer will send packets out to that address. If 158.77.4.92 goes down, your computer thinks it is down. It does NOT attempt to re-resolve the hostname via DNS because it thinks it is still a valid address.
The TTL for the DNS address in your cache is simply a measure of how long it is considered reliable. Therefor if the TTL on a particular lookup is 20 minutes. Your computer will keep that record in cache for no more than 20 minutes; but will rely on it 100% up until then.
Beyond that your question is kind of confusing, so I'll leave you with that and let you think on it and repost if you feel you need to.
__________________
Adam TT
|

July 8th, 2011, 01:46 PM
|
|
Registered User
|
|
Join Date: Jun 2011
Posts: 8
Time spent in forums: 1 h 36 m 34 sec
Reputation Power: 0
|
|
|
Perhaps I did go too quickly, but yes IE does have its own cache. You can check this by setting a low TTL and watching it time out in the OS's cache. Windows OS respects extremely low TTLs. However, IE does not. It will retain any IP for a minimum of 30 minutes before will allow it to retire. After running multiple tests on different versions of Windows and IE, I've found that after the 30 minutes, IE will only perform a lookup if there is a 2.5 minute delay.
I access google.com and it resolves to (1.2.3.4). If google.com's TTL was below 30 minutes, IE will automatically set it to 30 minutes, but Windows will let it expire sooner thus respecting the original time to live. For 30 minutes, as long at 1.2.3.4 is accessible, IE will continue to use it. AFTER the 30 minutes, IE will STILL continue to use (1.2.3.4) as long as A) it's still available and B) you don't have a time limit of 2.5 minutes with no TCP activity to 1.2.3.4.
I'm assuming here that the registry values that effect IE and the OS haven't been altered.
I want to know why IE doesn't automatically check after the time is up and continues using the old IP it associated with google.com
|

July 8th, 2011, 03:25 PM
|
 |
Automagically Delicious
|
|
Join Date: May 2004
Location: 127.0.0.2 - I live next door.
|
|
|
Ahh, see, now I've learned something, too! I wonder if other browsers do this, too. Have you tried?
|

July 9th, 2011, 10:33 AM
|
|
Registered User
|
|
Join Date: Jun 2011
Posts: 8
Time spent in forums: 1 h 36 m 34 sec
Reputation Power: 0
|
|
|
Chrome and FF do have their own cache but are respecting of low TTLs.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|