You can use nsPIDNSService to Shutdown and Init the DNS service. That will clear its cache. It isn't the best solution since it will momentarily disrupt network activity, so use sparingly.
-Darin On 4/20/06, carglue <[EMAIL PROTECTED]> wrote: > Is it possible to clear the Mozilla DNS cache at runtime? Either in one > shot (like you can for browser and auth caches), or entry-by-entry? > > I know setting network.dnsCacheEntries and network.dnsCacheExpiration > preferences to 0 can do it on startup, but I'm looking for a way to do > it dynamically. > > I didn't see anything in my quick scan of the DNS ifaces on xulplanet. > _______________________________________________ > dev-tech-network mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-tech-network > _______________________________________________ dev-tech-network mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-network
