Event ID 1004 — DNS Server Configuration
Applies To: Windows Server 2008
The DNS server configuration consists of the settings that determine how the DNS server will function on a network and how those settings are stored and retrieved when they are needed.
Event Details
Product: | Windows Operating System |
ID: | 1004 |
Source: | Microsoft-Windows-DNS-Server-Service |
Version: | 6.0 |
Symbolic Name: | DNS_EVENT_COULD_NOT_OPEN_DATABASE |
Message: | The DNS server could not find or open the zone file %1 in the %SystemRoot%\System32\Dns directory. Verify that the zone file is located in this directory and that it contains valid data. |
Resolve
Check the zone file
Standard and primary zones, that is, zones that are not integrated with Active Directory Domain Services (AD DS), store zone information in a file. If this file is missing or corrupted, the DNS server cannot load the zone.
Check that a zone file for the zone exists in the %SystemRoot%\System32\Dns directory. If the file does not exist, delete the zone and recreate it by using Server Manager.
Use Registry Editor to determine if an entry exists for the zone file in the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DNS Server\Zones\zone\DatabaseFile
If there is no registry entry for the zone file, either update the zone file name in the registry or delete the zone in the registry and then recreate it by using Server Manager.
Update the zone file name in the registry
To modify or remove the zone file name in the registry:
Caution: Incorrectly editing the registry might severely damage your system. Before making changes to the registry, you should back up any valued data.
On the DNS server, start Registry Editor. To start Registry editor, click Start, click Run, type regedit, and then click OK.
In the console tree, navigate to the following key:
**HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DNS Server\Zones\**zone\DatabaseFile
Right-click ListAddresses, and then click Delete.
In Server Manager, right-click the DNS server, click All Tasks, and then click Restart.
If the file exists and is correctly identified in the registry, DNS server could not parse the zone file. Check that it contains valid data. You can use Notepad or another text editor to examine and correct the contents of the zone file.
Check the event logs for the exact name of the zone file and line numbers before either correcting or deleting entries in the zone file.
Delete the zone and recreate it by using Server Manager
To delete a zone in the registry:
Caution: Incorrectly editing the registry might severely damage your system. Before making changes to the registry, you should back up any valued data.
On the DNS server, start Registry Editor. To start Registry editor, click Start, click Run, type regedit, and then click OK.
In the console tree, navigate to the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DNS Server\Zones\
Right-click the registry key of the zone, and then click Delete.
To use Server Manager to recreate a zone:
On the DNS server, start Server Manager. To start Server Manager, click Start, click Administrative Tools, and then click Server Manager.
In the console tree, expand Roles, expand DNS Server, and then expand DNS.
Expand the DNS server, and then expand the folder that contains the zone.
Right-click the zone, and then click Delete.
Note: If you cannot delete the zone using this method, you must use Registry Editor to delete the registry key for the zone.
Right-click the folder, and then click New Zone.
Follow the instructions in the wizard to recreate the zone.
Verify
To verify that the Domain Name System (DNS) configuration is correct, verify that all configuration settings are correct, check the event log for events that indicate continuing problems, and then verify that DNS client computers are able to resolve names properly.
To verify DNS configuration settings:
- On the DNS server, start Server Manager. To start Server Manager, click Start, click Administrative Tools, and then click Server Manager.
- In the console tree, double-click Roles, double-click DNS Server, and then double-click DNS.
- Right-click the DNS server, and then click Properties.
- Review the settings on each tab, and verify that they contain the intended values.
- Expand the DNS server.
- Expand a zone folder, right-click a zone, and then click Properties.
- Review the settings on each tab, and verify that they contain the intended values.
- Repeat steps 6 and 7 for each zone.
To verify that DNS client computers can resolve names properly:
- On a DNS client computer, open a command prompt. To open a command prompt, click Start, click Run, type cmd, and then click OK.
- At the command prompt, type pinghostname (where hostname is the DNS name of a computer with a known IP address), and then press ENTER.
If the client can resolve the name, the ping command responds with the following message:
Pinginghostname [ip_address]
Note: The name resolution is successful even if the ping command reports that the destination is unreachable.
If the client cannot resolve the name, the ping command responds with the following message:
Ping request could not find hosthostname