Home >Common Problem >The requested pause, continue, or stop is not valid for this service
When the system faces any issue related to Internet connectivity, the user executes the command to flush DNS cache or stop DNS. Some other users also flush the DNS cache if the DNS cache gets corrupted or if there is any kind of DNS settings issue in the system.
Recently many Windows users have reported that when they try to execute the command to stop the DNS client service, it throws an error message that says "The requested pause, continue, or stop is not valid for this service." and the command was not executed.
Since they are unable to execute this command, the DNS related issues remain in the system without being resolved.
For some users, the refresh DNS cache command works perfectly. But after the recent Windows 11 upgrade and Windows 10 21H1 version, users are not allowed to stop the DNS client service using the command net stop dnscache.
In this article, we will show you how to resolve this issue so that users can stop the DNS client service.
Here are the steps on how to check the DNS client service in Windows system.
Step 1: Press the Windows R key at the same time to open the Run command box.
Step 2: After opening the run command box, type services.msc in the text box, and then press the Enter key.
Step 3: This will open the Services application window on your system.
Step 4: In the Services window, find the service named DNS ClientService from the list of services as shown below.
Step 5: Right-click the DNSClient service and select Properties from the context menu.
Step 6: In the properties window, you can see that Startup type has been set to automatic, Startup and the Stop button is disabled.
Step 7: This applies to all user accounts as well as administrator accounts in Windows 11,10 systems.
Before continuing with this method, you need to export the registry files on your system in case the registry file becomes corrupted while editing. It can be restored as registry files are very important for any system.
Please follow the steps below on how to edit the registry file to fix this issue.
Step 1: Press the Windows R keys simultaneously on your keyboard to open the Run box.
Step 2: Next, type regedit in the text box and press the Enter key.
Step 3: Click Yes to accept the on-screen UAC prompt to continue.
Step 4: Once the Registry Editor window opens, clear its address bar.
Step 5: Copy and paste the following lines into the address bar and press Enter.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters
Step 6: Once you reach the registry key parameters, select it in the left panel. Step 7 value
to create a new DWORD (32-bit) value as shown in the screenshot below.Step 8: Rename this DWORD value to MaxCacheTtl and
double-clickto open its editing window.
Step 9: Enter the value 86400 in the Value Data
text box and clickOK
.Step 10: Next, follow the instructions in Step 7 to create another DWORD value.
Step 11: Rename the other newly created DWORD value to
MaxNegativeCacheTtl.Step 12: Right-click MaxNegativeCacheTtl
and selectModify from the menu.
Step 13: Enter 5 in its numerical data text box, and then click
OKto close the window .
Step 14: Close the Registry Editor and restart the system once. Step 15: This should refresh the DNS cache every few hours.
Hopefully this article helped you understand this error and how to clear the DNS client cache yourself every few hours. You do not need to stop the DNS Client service which is disabled for all user accounts and administrators.
The above is the detailed content of The requested pause, continue, or stop is not valid for this service. For more information, please follow other related articles on the PHP Chinese website!