DNS Client (Dnscache) Service Defaults in Windows 7

The DNS Client service (dnscache) caches Domain Name System (DNS) names and registers the full computer name for your computer. If the service is stopped, DNS names will continue to be resolved. However, the results of DNS name queries will not be cached and the computer's name will not be registered. If the service is disabled, any services that explicitly depend on it will fail to start.

Default Settings

Startup type:Automatic
Display name:DNS Client
Service name:Dnscache
Service type:share
Error control:normal
Group:TDI
Object:NT AUTHORITY\NetworkService
Path:%SystemRoot%\system32\svchost.exe -k NetworkService
File:%SystemRoot%\System32\dnsrslvr.dll
Registry key:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache
Privileges:
  • SeChangeNotifyPrivilege
  • SeCreateGlobalPrivilege

Default Behavior

DNS Client is a Win32 service. In Windows 7 it is starting automatically on the operating system startup. Then the DNS Client service is running as NT AUTHORITY\NetworkService in a shared process of svchost.exe. Other system components, such as drivers and services, may run in the same process. If DNS Client fails to start, Windows 7 attempts to write the failure details into Event Log. Then Windows 7 startup should proceed and the user should be notified that the Dnscache service is not running because of the error.

Dependencies

DNS Client is unable to start, if at least one of the following services is stopped or disabled:

Restore Default Startup Configuration for DNS Client

Before you begin doing this, make sure that all the services on which DNS Client depends are configured by default and function properly. See the list of dependencies above.

1. Run the Command Prompt as an administrator.

2. Copy the commands below, paste them into the command window and press ENTER:

sc config Dnscache start= auto
sc start Dnscache

3. Close the command window and restart the computer.

The Dnscache service is using the dnsrslvr.dll file that is located in the %WinDir%\System32 folder. If the file is changed, damaged or deleted, you can restore its original version from Windows 7 installation media.