.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Clearing/Editing Internet explorer DNS cache

Posted By: BK Komal     Posted Date: November 04, 2009    Points:2   Category :ASP.Net
I am using internet IE 7, IE 8

My application in running in dns fail over environment with primary and back up server. As the primary server is down, failover changes to the secondary server after 2 - 3 minutes.

But the problem is, the current opened page in IE is still sending requests to the primary server due to dns caching, which stores the IP of the primary server for default 30 minutes) and hanged.

This problem can be solved if we can clear or edit the dns cache with C# ASP.Net coding.

Thanks in advance for replying.

Responses
Author: Rahul             
Posted Date: November 04, 2009     Points: 5   

Hi,

Using windows api you can flush DNS cache..

Check out this article for the code

http://brannickdevice.blogspot.com/2006/04/winxp-flushing-dns-programatically.html



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend