By default, DHCP Server uses DHCP.MDB file as its database to store Scope, lease information and server options settings. When DHCP Server starts, it always checks the database name by querying the following registry entry:
- KEY Name: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\DHCPServer
- Entry Name: DatabaseName
- Value: Name_of_the_database (dhcp.mdb)
DHCP Server always checks the above registry entry and one more registry entry at the same location to know the path where it can search the DHCP.MDB file. The registry entry name is DatabasePath at the same registry entry location.
When DHCP Server starts, it:
- Checks the DatabasePath registry entry to know the DHCP Database path on the local system
- Next queries the DatabaseName to know which file to look into path specified by DatabasePath registry entry
Note: The Dhcp.mdb must be in the path specified by the DatabasePath registry entry. The default DHCP Database path is Systemroot \System32\dhcp

