Share via

How can ı disable DNS client in 24h2

Anonymous
2024-11-06T18:51:20+00:00

dns client use high internet and ı lost my connection

Windows for home | Windows 11 | Internet and connectivity

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

  1. Anonymous
    2025-01-04T01:28:02+00:00

    Thank you for answer. but when I do what you say, my computer's wifi and ethernet connection capabilities are disabled.
    Is there any other solution?

    Your issue was intentionally introduced into Windows by Microsoft. Nothing you can do about it from what I can tell.

    You are correct - disabling local DNS caching (which is what the dnscache service does) essentially disables networking, because Windows has been changed so that networking requires a LOCAL cache (even though there's no logical reason for that). Telling Windows to NOT rely on the dnscache service for networking using the registry (by removing "dnscache" from the "NetworkService" key in HKLM\Software\Microsoft\Windows NT\CurrentVersion\Svchost and HKLM\Software\WOW6432Node\Microsoft\Windows NT\CurrentVersion\Svchost) doesn't work - as soon as you disable the dnscache service, your computer will no longer automatically fallback to an external DNS server for lookups, which basically makes your networking unusable. (You may still be able to ping external IP addresses, such as 9.9.9.9, but trying to go to "example.com" will fail.)

    Your only options are to do nothing and stay broken, go to back to a previous version of Windows 11/10 (before the change was introduced) and hope Microsoft doesn't force you to update anyway, or something drastic like switching to a completely different OS. None of those options are ideal, but unless Microsoft decides to give power users better control over their security, you're stuck.

    2 people found this answer helpful.
    0 comments No comments

10 additional answers

Sort by: Most helpful
  1. Anonymous
    2025-01-11T19:02:37+00:00

    "...a large HOSTS file..."

    There are a couple of ways to get around having a large hosts file. If, say, you're looking to block a large number of sites, and if, say, you're remapping those sites to "0.0.0.0", you can combine multiple domains per line, like this:

    0.0.0.0 domain1.com domain2.com domain3.com
    

    I'm led to believe that you can have up to nine domains per line, which would work if, say, you wanted to use a popular lists of hosts for blocking sites. (I won't mention any names... but I'm talking about this.) (Oh, and if you wanted an automatic way to do that, start here.) The advantage to that is that it's simple. The disadvantage is that it still relies on Microsoft's implementation of the dnscache service.

    Another option is to run your own DNS server on your machine (e.g., Unbound), then configure Unbound to block the sites for you. The disadvantage is that it's another piece of software running in the background, the advantage is that it's less janky. Another disadvantage is that you can't use normal hosts files with Unbound - they need to be converted into Unbound's config format. If only there were a solution to that problem (that I just made and posted this morning)...

    Good luck!

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2025-01-11T11:57:25+00:00

    The making of the service "DNS client" mandatory is what caused my upgrade to 24H2 to give me no internet.

    Anyone who had in previous versions disabled this service due to a large HOSTS file, found they had no internet because of this problem. Arriving in 24H2 with this service not running causes a complete block. This service is NOT mandatory and some mistake has been made in requiring it. A large HOSTS file makes this service run VERY slowly.

    So I now emptied my HOSTS file and have the service running and the 24H2 works again.

    This may not be the only problem with broken networking, but was a solution for me.

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2025-01-09T18:49:53+00:00

    Your issue was intentionally introduced into Windows by Microsoft.

    Well, that's bad! I used to disable the DNS Client because it uses a large amount of CPU, causing my computer to use unnecessary processing power with some types of applications running.

    1 person found this answer helpful.
    0 comments No comments
  4. Anonymous
    2024-11-11T19:42:28+00:00

    Thank you for answer. but when I do what you say, my computer's wifi and ethernet connection capabilities are disabled.
    Is there any other solution?

    1 person found this answer helpful.
    0 comments No comments