sodcalculator

10 Tech How-To

Fix Greyed Out DNS Client Service in Windows 11

Guide 10-55193 · Updated · Step by step

If the DNS Client service is greyed out in Windows 11’s Services window, you can't start, stop, or change its startup type through the normal interface. This fix involves editing the Windows Registry to restore the service's configuration, then restarting your PC.

Why the DNS Client Service Gets Greyed Out

The DNS Client service (also called Dnscache) is a core Windows networking component that caches Domain Name System lookups. Normally, its startup type is set to Automatic and it runs under the Local System Account. When the service is greyed out, it usually means the service's registry entry is corrupted or missing critical values. This can happen after a third-party "privacy" or "network optimizer" tool modifies the registry, a manual registry edit goes wrong, or a Windows update conflicts with existing settings.

The greyed-out state occurs because the Services snap-in (services.msc) reads the service's configuration from the registry key HKLM\SYSTEM\CurrentControlSet\Services\Dnscache. If the Start value is missing, set to an invalid number, or the ImagePath is incorrect, the GUI disables the controls to prevent you from making changes that could crash the system.

Before You Begin: Check for Group Policy Interference

On Windows 11 Pro, Enterprise, or Education editions, Group Policy can also grey out service controls. To rule this out:

  1. Press Win + R, type gpedit.msc, and press Enter.
  2. Navigate to Computer Configuration > Windows Settings > Security Settings > System Services.
  3. Find DNS Client in the list. If its policy is set to Disabled, double-click it, select Not Configured, and click OK.
  4. Close Group Policy Editor and restart your PC.

If you're on Windows 11 Home, Group Policy Editor isn't installed by default, so you can skip this step. If the policy was the cause, the service controls should be active again after a restart.

Fix the Registry Values for DNS Client

If Group Policy isn't the issue, the registry is the next place to look. This fix requires administrative rights. Follow these steps carefully:

  1. Press Win + R, type regedit, and press Enter. Click Yes if prompted by User Account Control.
  2. Navigate to the following key:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache
  3. In the right pane, check that the Start value exists and is set to 2 (which means Automatic). If it's missing, right-click in the pane, select New > DWORD (32-bit) Value, name it Start, and set its value data to 2.
  4. Verify the ImagePath value is present. It should be:
    %systemroot%\System32\svchost.exe -k netsvcs -p
    If it's missing or wrong, right-click the empty space, select New > Expandable String Value, name it ImagePath, and enter the path above.
  5. Check the ObjectName value. It should be LocalSystem. If it's missing, create a new String Value with that name and set it to LocalSystem.
  6. Close Registry Editor and restart your computer.

After the restart, open Services (services.msc) and check the DNS Client service. The fields should no longer be greyed out, and the service should be running.

If the Service Still Won't Start

Sometimes the service starts but immediately stops, or it won't start at all. This usually points to corrupted system files or a conflicting third-party service. Try these steps in order:

  • Run SFC and DISM: Open Command Prompt as administrator and run sfc /scannow. After it finishes, run DISM /Online /Cleanup-Image /RestoreHealth. Restart your PC.
  • Check dependencies: DNS Client depends on the Network Store Interface Service (nsis) and the Remote Procedure Call (RPC) service. Make sure both are set to Automatic and running.
  • Disable third-party network tools: Uninstall any VPN clients, firewall suites, or "network booster" software that might have modified the service configuration. Then restart and try again.
  • Perform a system restore: If the problem started recently, use System Restore to roll back to a point before the issue appeared.

What to Do If Registry Editing Makes You Uncomfortable

If you're not confident editing the registry, you have safer alternatives:

  • Use the Command Prompt as Administrator: Run sc config Dnscache start= auto and then sc start Dnscache. This often works even when the GUI is greyed out, because it writes the same registry values.
  • Run the Windows Network Troubleshooter: Go to Settings > System > Troubleshoot > Other troubleshooters and run the Network Adapter troubleshooter. It may reset the service configuration.
  • Use the Windows Recovery Environment: If the system is unstable, boot into Recovery (WinRE) and choose Startup Repair. This can fix underlying issues without a full reinstall.

Why You Shouldn't Just Disable the Service

Some users try to "fix" the greyed-out state by disabling the DNS Client service permanently. That's a bad idea. Windows relies on this service to cache DNS responses, which speeds up name resolution for every network connection. Disabling it can cause:

  • Slower web browsing and connection delays.
  • Some applications failing to resolve hostnames.
  • Windows features like DirectAccess or Always-On VPN malfunctioning.

If you were trying to disable it for privacy reasons (e.g., to avoid DNS caching), know that Windows will still resolve DNS without the cache—it just won't store the results. The performance hit is usually noticeable, and it's not a recommended practice.

Frequently Asked Questions

Why is the DNS Client service greyed out in Windows 11?

The most common cause is a corrupted registry entry for the service, often from third-party system cleaners or manual edits. Group Policy can also cause it on Pro/Enterprise editions. The Services GUI disables controls when it detects invalid configuration data.

Can I fix the greyed-out DNS Client without editing the registry?

Yes. Try running sc config Dnscache start= auto in an elevated Command Prompt. This writes the correct registry values without opening the Registry Editor. If that fails, use System Restore or the Windows Network Troubleshooter.

What should the Start value be for DNS Client?

The Start value should be 2, which maps to "Automatic" in the Services GUI. If it's set to 3 (Manual) or 4 (Disabled), the service may not start automatically, and the GUI might grey out. Set it to 2 and restart.

Will resetting DNS Client affect my internet connection?

Briefly, yes. When you restart the service, the DNS cache is cleared, so the next few name resolutions will be slightly slower. Your connection itself won't drop, but you may see a temporary slowdown until the cache rebuilds.

Is it safe to delete the Dnscache registry key and let Windows recreate it?

No. Deleting the key can cause serious networking problems, and Windows won't automatically recreate it. Always repair the existing values rather than deleting the key. If you've already deleted it, use System Restore or a registry backup.

Why does the DNS Client service keep stopping after I start it?

This usually indicates a dependency issue or corrupted system files. Check that the Network Store Interface Service and RPC are running, then run SFC and DISM. If the problem persists, look for third-party security software that might be interfering.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →