Search code examples
c#.netcachingdnsflush

Is there a way to flush the DNS cache from a C# WPF app? (on XP, Vista, Win7)


Is there a way to flush the DNS cache from a C# WPF app? The application would be running on either XP, Vista, or Windows 7.


Solution

  • This may be the poor-man's solution, but you could use System.Diagnostics.Process to launch ipconfig /flushdns.