Dnscmd is a powerful
and useful command for configuring DNS on Windows Server 2008. It??™s the only method
to make changes to your DNS Server locally on the server, but it can also be executed remotely
from a different server. Again, I would recommend using the DNS MMC snap-in
whenever possible rather than dnscmd, since the snap-in is far more intuitive.
If you later decide that this Server Core instance will no longer provide DNS services,
you can uninstall it by running the following:
Start /w ocsetup DNS-Server-Core-Role /uninstall
Installing and Configuring the DHCP Server Role
Whether you are configuring a small environment or an enterprise-size network, you
will most likely want to use DHCP to manage the IP addresses in your environment.
Before you can do that with Windows Server Core, you will need to install this role using
the following command:
Start /w ocsetup DHCPServerCore
Once installed, you will have the option to configure your DHCP scopes using either
netsh or the DHCP MMC snap-in from a remote server. Also, if this DHCP Server is acting
within an Active Directory domain, it must also be authorized in Active Directory before
it can issue IP addresses. You can authorize a DHCP Server in the domain using the
DHCP MMC snap-in, but it can also be done using netsh. For example, if your Server
40 Microsoft Windows Server 2008 Administration
Core instance is called WINDHCP1 and has the IP address 172.
Pages:
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81