在Windows(Windows)计算机上访问 Internet是一个复杂的过程,而DNS 客户端服务(DNS Client Service)对于该过程至关重要。此服务通过缓存查询为您重复访问的服务器提供DNS 解析(DNS resolution)。
Windows系统允许您随意启动和停止DNS Client服务,最直接的地方是在Services 小程序(Services applet)中。首先(First),我们将向您展示如何在服务小程序中启动或停止(Services)DNS 客户端(DNS Client)服务。
如何启动或停止DNS 客户端(DNS Client)服务
- Windows key + R快捷键打开“运行”对话框 。
- 输入 services.msc并单击 OK按钮。
- 从列表中找到 DNS 客户端服务(DNS client service)并右键单击它。
- 点击上下文菜单上的 开始 (Start )或 停止(Stop)选项。
- 要将DNS客户端服务设置为自动启动,请右键单击它,然后选择Properties。
- 从Startup type 下拉菜单中,将其更改为 Automatic。
- 单击 确定(OK)。
上述步骤是启动DNS客户端服务的标准步骤。但是,许多用户发现启动或停止DNS 客户端(DNS Client)服务的选项在他们的系统中不起作用。
本文向您展示了解决此问题的三种方法,并在选项灰显时启动或停止DNS 客户端服务。(DNS Client)
如果显示为灰色或禁用,则启用DNS 客户端服务(DNS Client Service)
如果DNS 客户端服务(DNS Client Service)在您的 Windows 10 计算机上显示为灰色或禁用,那么请知道它可能是设计的。不过(Nevertheless),您可以尝试以下方法来启用 D NS 客户端(DNS Client)服务的启动和停止选项。
- 从Windows 注册表编辑器(Windows Registry Editor)修复它。
- 从系统配置(System Configuration)小程序启动DNS客户端服务。
- 从命令提示符(Command Prompt)启动DNS客户端服务。
继续(Continue)阅读下文,了解执行上述操作的完整指南。
1]从Windows注册表编辑器(Windows Registry Editor)修复它(Fix)
单击(Click)开始菜单(Start menu)按钮并搜索 regedit。右键单击 注册表编辑器(Registry Editor),然后选择 Run as administrator选项。
在注册表编辑器(Registry Editor)中,导航到以下文件夹:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Dnscache
右键单击右侧的 Start键,然后选择 Modify。
将值数据更改为 4。点击 OK按钮保存此设置。
注意: (NOTE: )将值数据更改为 4 意味着您正在禁用该服务。将其设置为自动启动服务。同样(Likewise), 3 表示它手动启动。
关闭注册表编辑器(Registry Editor)并按照上一节中的步骤从 services.msc 启动DNS客户端服务。
2]从系统配置(System Configuration)小程序启动(Start)DNS客户端服务
Windows key + R 组合打开“运行”对话框 。
在“运行”(Run)对话框中输入 MSConfig ,然后单击“确定”按钮。(MSConfig)
切换到服务(Services)选项卡并从列表中找到 DNS 客户端选项。(DNS client)
通过标记服务左侧的复选框来启用DNS客户端服务。
如果您想禁用或停止该服务,请取消选中它旁边的复选框。
3]从命令提示符(Command Prompt)启动(Start)DNS客户端服务
命令提示符(Command Prompt)使您能够对 Windows 系统进行大量更改(Windows)。
其中包括其他程序无法进行的更改。
以下是使用命令提示符(Command Prompt)启动和停止DNS客户端服务的方法:
按(Press)Windows键并搜索 cmd。右键单击命令提示符(Command Prompt)并选择 以管理员身份运行(Run as administrator)选项。
在命令提示符(Command Prompt)窗口中键入以下命令,然后按ENTER:
net stop dnscache
上面的命令强制DNS客户端服务在运行时停止。
接下来,在命令提示符(Command Prompt)窗口中输入以下命令并按 ENTER:
net start dnscache
如果DNS(DNS)客户端服务已关闭且未运行,则此命令将启动它。
此处首选的三种解决方案将帮助您启动或停止DNS客户端服务,无论它是否灰显。
How to enable the DNS Client Service if greyed out in Windows 10
Accesѕing the internet on your Windows comрuter is a complex process, and the DNS Client Service is crucial to the process. This service facilitates DNS resolution for servers you repeatedly visit by caching queries.
The Windows system lets you start and stop the DNS Client service at will, and the most straightforward place to do this is in the Services applet. First, we’ll show you how to start or stop the DNS Client service in the Services applet.
How to Start or Stop the DNS Client service
- Open the Run dialog box using the Windows key + R shortcut.
- Enter services.msc and click on the OK button.
- Find the DNS client service from the list and right-click on it.
- Hit the Start or Stop option on the context menu.
- To set the DNS client service to start automatically, right-click on it, and select Properties.
- From the Startup type dropdown menu, change it to Automatic.
- Click OK.
The above steps are standard for starting the DNS client service. However, many users have found that the options to start or stop the DNS Client service don’t work in their system.
This article shows you three ways to fix this issue and start or stop the DNS Client service if the options are greyed out.
Enable DNS Client Service if greyed out or disabled
If the DNS Client Service if greyed out or disabled on your Windows 10 computer, then know that it could be bu design. Nevertheless, here are ways you can try for enabling the start and stop options for the DNS Client service.
- Fix it from the Windows Registry Editor.
- Start the DNS client service from the System Configuration applet.
- Start the DNS client service from Command Prompt.
Continue reading below for the full guides for carrying out the above operations.
1] Fix it from the Windows Registry Editor
Click on the Start menu button and search for regedit. Right-click on Registry Editor and select the option to Run as administrator.
In the Registry Editor, navigate to the following folder:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Dnscache
Right-click on the Start key on the right-hand side and select Modify.
Change the value data to 4. Hit the OK button to save this setting.
NOTE: Changing the value data to 4 means that you’re disabling the service. To set it to start the service automatically. Likewise, 3 means it starts manually.
Close the Registry Editor and follow the steps in the previous section to start the DNS client service from services.msc.
2] Start the DNS client service from the System Configuration applet
Open the Run dialog box using the Windows key + R combination.
Input MSConfig in the Run dialog box and click on the OK button.
Switch to the Services tab and find the DNS client option from the list.
Enable the DNS client service by marking the checkbox to the left of the service.
If you wish to disable or stop the service, unmark the checkbox next to it.
3] Start the DNS client service from Command Prompt
The Command Prompt gives you the ability to make numerous changes to your Windows system.
These include changes that are impossible to make with other programs.
Here is how to start and stop the DNS client service using the Command Prompt:
Press the Windows key and search for cmd. Right-click on Command Prompt and choose the Run as administrator option.
Type in the following command in the Command Prompt window and hit ENTER:
net stop dnscache
The above command forces the DNS client service to stop if it was running.
Next, type in the following command in the Command Prompt window and hit ENTER:
net start dnscache
This command starts the DNS client service if it was turned off and not running.
The three solutions preferred here will help you start or stop the DNS client service, whether it’s greyed out or not.