Setting up DNS and DHCP

Windows Server Roles

Windows Server Roles are predefined sets of software features built into Windows Server that allow the server to perform specific network services and infrastructure functions. Each role defines what the server does — for example:

In a lab environment, assigning and configuring these roles lets you simulate real-world IT infrastructure, enabling hands-on learning in areas like domain management, policy enforcement, and network services deployment — all from your VirtualBox-based Windows Server instance.


Overview:

Before setting up Active Directory, two critical services must be configured: DNS and DHCP.

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

Active Directory depends on DNS to locate domain controllers and services. DHCP simplifies network management by assigning the correct IP and DNS settings to domain-joined computers.

Without DNS

Without DHCP



Configuring Internal DNS and DHCP on Windows Server 2016

Configuring DNS

1. Verify DNS Installation

Typically the first step would be to install the DNS Server Role, however, in this example that is already installed. So we'll verify the installation in this step.


Configure DNS Forwarders (Optional)

  1. Right-click your server in DNS Manager > Properties
  2. dns--5.PNG
  3. Go to the Forwarders tab
  4. dns--6.PNG
  5. Add:
  6. dns--7.PNG
  7. 8.8.8.8 (Google DNS)
  8. 1.1.1.1 (Cloudflare DNS)
  9. dns--8.PNG
  10. Click OK to save

Configuring DHCP

Install the DHCP Server Role

1. Click the Add roles and features in Server Manager.

dhcp1.PNG

2. The installation wizard will come up to follow the prompts.

dhcp2.PNG

3. For this example, I'm selecting Role-based or feature-based installation.

dhcp3.PNG

4. Server Selection:

dhcp3.5.PNG

5. Check the box next to DHCP Server under Server Role selection.

dhcp5.PNG

6. Follow the prompt to Add Features

dhcp6.PNG

7. Confirm installation selections, click Install.

dhcp7.PNG

8. Installation in progress

dhcp8.PNG dhcp9.PNG dhcp10.PNG

DHCP Authorization

1. After installing the DHCP server role, Server Manager will then have a notification for the Post-deployment configuration steps.

dhcpconf2.PNG

2. Upon clicking "Complete DHCP configuration", the DHCP Post-Install configuration wizard will come up to Authorize the DHCP server.

dhcpconf2.PNG

3. Specify the credentials to be used to authorize this DHCP server in AD DS.

In this example, I'm going to select the following user's credentials, then click Commit.

dhcpconf3.PNG

Create a DHCP Scope

1. In Server Manager > Tools, select DHCP in the drop-down tools menu.

dhcpmgmt2.PNG

2. DHCP Manager:

dhcpmgmt3.PNG

3. Expand the server/domain hierarchy.

dhcpmgmt4.PNG

4. Right-click on IPv4, select New Scope.

dhcpmgmt5.PNG

5. The New Scope Wizard will prompt.

dhcpmgmt6.PNG

6. In this example, I'm going to name this Scope Name "Lab Scope".

dhcpmgmt7.PNG

7. Next, configure the IP Address range.

dhcpmgmt8.PNG

8. Specify the IP address range that you want to exclude, if any.

dhcpmgmt9.PNG

9. Set the Lease Duration:

dhcpmgmt10.PNG

10. Configure DHCP Options:

dhcpmgmt11.PNG

11. Enter the Default Gateway address of the network, for example - 192.168.1.1:

dhcpmgmt12.PNG

12. Set the Parent Domain name for Domain Name and DNS Servers.

dhcpmgmt13.PNG

13. Specify the WINS Server functionality if applicable.

dhcpmgmt14.PNG

14. Activate the new DHCP Scope:

dhcpmgmt15.PNG

15. Click Finish

dhcpmgmt16.PNG

16. The new scope under IPv4 of DHCP Manager.

dhcpmgmt17.PNG

This demonstration included configuring internal DNS and DHCP on Windows Server 2016, the two critical services that must be configured prior to setting up Active Directory. The next lab will outline the steps on installing and setting up the AD DS server role.

Back to Home