Api call to stop generic host DNS service?

Miscellaneous Forums/General Discussion/Api call to stop generic host DNS service?

Is there a Api call to stop the generic host DNS service?

Deactivating the "DNS Client" under "services" using msconfig.exe seems to solve the problem. By definition this is deactivating DNS caching of windows, although I still have no idea why windows was accessing the internet every second once, ony to "cache dns" (as sysinternals process explorer showed the permanent traffic was caused by the DNS service, wrapped by shady svchost.exe). I rather thought it will cache dns everytime an URL is resolved anyway, but not when I don´t access the web at all. (Note: autoupdate is turned off)

So after deactivating this as described before, I got zero traffic as long as I don't access something explicitely. Phew!

Hmm, so Windows is caching DNS, my router insists on being a DNS cache (inserting itself as primary nameserver through DHCP) and my ISP's DNS servers undoubtedly cache a lot of stuff too.

That's a lot of cache.

That's a lot of cache.


Yup. Even worse, IIRC some applications (like Internet Explorer) also have an application-level DNS cache on top of the windows cache.

Note that you can manually flush the windows DNS cache using: ipconfig /flushdns