Windows & Linux · AD Domain Lab · Setting up DNS and DHCP

Setting up DNS and DHCP

Before promoting your server to a domain controller, configure DNS and DHCP. DNS enables name resolution and domain location; DHCP automates IP and DNS distribution to clients.

Windows Server Roles

Windows Server Roles are predefined feature sets that let a server deliver specific network services and infrastructure functions.

In a lab, assigning and configuring these roles simulates real-world IT infrastructure for hands-on learning in domain management, policy enforcement, and network services—right from your VirtualBox Windows Server.

Overview

Before setting up Active Directory, configure two critical services: DNS and DHCP.

This lab configures both on the same Windows Server that will later function as a domain controller.

Without DNS

Without DHCP

Configuring Internal DNS (Windows Server 2016)

Verify DNS Installation

In this example the DNS Server role is already installed—so we’ll verify.

Open DNS Manager

Confirm a Forward Lookup Zone exists for your domain (e.g., Domain-1.local)

Forward Lookup Zones

Zone contains A records used for domain authentication

A records in forward lookup zone

Configure DNS Forwarders (Optional)

Forwarders allow internal DNS to resolve external names via public DNS servers.

  1. Right-click your server in DNS Manager → Properties
  2. DNS server properties
  3. Go to the Forwarders tab
  4. Forwarders tab
  5. Add:
  6. Add forwarder
  7. 8.8.8.8 (Google DNS)   ·   1.1.1.1 (Cloudflare DNS)
  8. Forwarders configured
  9. Click OK to save

Configuring DHCP

Install the DHCP Server Role

1) Click Add roles and features in Server Manager

Add roles and features

2) Follow the wizard prompts

Roles and Features wizard

3) Choose Role-based or feature-based installation

Installation type

4) Server Selection

Server selection

5) Check DHCP Server under Server Roles

Select DHCP Server role

6) Add Features when prompted

Add features for DHCP

7) Confirm selections → Install

Confirm and install

8) Installation progress

Installation progress 1
Installation progress 2
Installation progress 3

DHCP Authorization

1) Post-deployment configuration notification appears

Post-deployment configuration notice

2) Click Complete DHCP configuration to open the wizard and authorize the server

Complete DHCP configuration wizard

3) Specify credentials to authorize in AD DS → Commit

In this example, I select a specified user’s credentials and commit the changes.

Authorize DHCP server

Create a DHCP Scope

1) Server Manager → Tools → DHCP

Open DHCP Manager

2) DHCP Manager

DHCP Manager console

3) Expand the server/domain hierarchy

DHCP hierarchy

4) Right-click IPv4New Scope…

New scope action

5) New Scope Wizard

Scope wizard

6) Name the scope (e.g., Lab Scope)

Scope name

7) Configure IP address range

Scope IP range

8) Exclusions (optional)

Exclusions

9) Lease Duration

Lease duration

10) Configure DHCP Options

Configure options

11) Default Gateway (e.g., 192.168.1.1)

Default gateway

12) Domain Name & DNS Servers (use your internal domain and DNS)

DNS options

13) WINS (if applicable)

WINS options

14) Activate the scope

Activate scope

15) Finish

Finish scope wizard

16) Verify the new scope under IPv4

Scope visible in console

This walkthrough configured internal DNS and DHCP on Windows Server 2016—the two key services to set before promoting to a domain controller. Next up: installing the AD DS role and standing up Active Directory.

Back to Home