Hi,
You can use a function from Microsoft's "dnsapi.dll". This will allow you to do this completely programmatically:
using System.Runtime.InteropServices;
[DllImport("dnsapi.dll",EntryPoint="DnsFlushResolverCache")]
private static extern UInt32 DnsFlushResolverCache ();
public static void FlushMyCache()
{
UInt32 result = DnsFlushResolverCache();
}
Good luck,
JAFC