14.19. Running DHCP Server on a Domain Controller
You want to run the DHCP Server service on a domain controller. It is not recommended that you run DHCP on a domain controller unless you modify the DHCP Server configuration to use alternate credentials when making dynamic DNS updates. This recipe explains how.
Using a graphical user interface
Open the DHCP snap-in.
In the left pane, right-click on DHCP and select Add Server.
Type in the name of the DHCP Server you want to target and click OK.
Right-click the server and select Properties.
Click the Advanced tab.
Click the Credentials button.
Enter the username, domain, and password for the account you want to use.
Click OK until all dialog windows are closed.
Using a command-line interface
Use the following command to display the current DNS credentials used by the DHCP Server:
> netsh dhcp server show dnscredentials
Use the following command to configure new DNS credentials on the DHCP Server:
> netsh dhcp server set dnscredentials
Use the following command to remove the DNS credentials used by the DHCP Server:
> netsh dhcp server delete dnscredentials dhcpfullforce
See the Introduction for more information on how to run the netsh command from within a script.
By default, the DHCP Server runs under the credentials of the computer account that is hosting it. If it happens to be running on a domain controller, it runs under the domain controller's computer account. A domain controller ...