This lab continues from the previous project, where we set up a Windows Server domain controller. Here, we configure a static IP and DNS on the server,
- Windows Server 2025 domain controller already configured.
- See previous lab: Windows Server and AD DS Setup
-
Open Command Prompt (search for
cmd). -
Run the following command:
ipconfig
Note: This isn't a "real" public IP address — it's the IP assigned to the server by the VM when it was created. We'll reuse this existing IP address as our static IP, rather than picking a new one.
Best practice: Servers should always have a static IP address, since a server's IP changing can break client connections and DNS resolution.
- Go to Settings > Network & Internet > Ethernet.
- Click Edit under IP assignment.
- Enter the IP address, subnet mask, and gateway found in Step 1.
- For the preferred DNS server, use the loopback address (
127.0.0.1) — this points the server to itself for DNS.
-
Restart the server to make sure the new settings are applied.
-
Once it's back up, open Command Prompt and run:
ipconfig /all
This shows more detail than a plain ipconfig — including the DNS server, which confirms the settings were applied correctly.
Next Lab: Creating OUs and Groups in AD