
close
close
Upcoming FREE Conference on Identity Management and Privileged Access Management
DNS plays a vital role in a healthy Active Directory (AD) environment, and any failure in name resolution could be disastrous. Before promoting Windows Server to a DC, you should always assign the server a static IP address. What I’m showing you in this article applies to simple AD environments with one domain controller.
Assuming the DNS server role will be installed on the same server as the DC, specify the server’s static IP address as the primary DNS server and use the loopback address (127.0.0.1) as the secondary DNS server entry.
Log in to Windows Server 2012 with an administrator account. To change the IP address and DNS server settings for a network adapter using the GUI:
To perform the same procedure using PowerShell:
Identify your network adapter in the list and make a note of its interface index number. You’ll need this in the following steps. The Internet alias is usually Ethernet by default and will appear twice in the list, once for IPv4 and again for IPv6.
Finally, set the primary and secondary DNS server addresses. Type Set-DNSClientServerAddress –InterfaceIndex 12 -ServerAddresses 192.168.0.2,127.0.0.1, replacing the index number and DNS server addresses as appropriate for your network.
More in DNS
Most popular on petri