I wanted one Windows Server box to own identity, name resolution and IP addressing for a whole network, with a firewall going back to routing and filtering only. That’s the usual enterprise split, and it sets up everything that comes later: Group Policy, hybrid identity with Entra ID, and logging.

Why the domain controller should own DNS and DHCP

Active Directory runs on DNS. Clients find domain controllers, Kerberos and LDAP through DNS records, so the domain controller has to be the DNS server everyone points at. Once it is, putting DHCP on the same box means clients register their own DNS records when they get a lease, and there’s one place to look when something can’t find something else.

There’s a security reason too. A DHCP server in an Active Directory domain has to be authorized before it leases addresses, and an unauthorized one doesn’t work [1]. That protects clients from a rogue DHCP server handing out a malicious gateway or DNS server, which is a cheap way to sit in the middle of their traffic.

The server

The domain controller is a Windows Server 2025 VM with UEFI firmware and a virtual TPM, on the internal network behind a firewall. It gets a static address, the firewall as its gateway, and itself (127.0.0.1) as its DNS server once the DNS role is installed.

I installed the Active Directory Domain Services role and promoted the server to a new forest. I picked a .local name so the internal namespace would never collide with my public domain. That’s a common choice, but it isn’t Microsoft’s: their guidance is to use a subdomain of a DNS name you’ve registered, such as corp.<public-domain>, and they specifically don’t recommend unregistered suffixes like .local [2]. If I were building a real company’s forest, I’d follow that.

A UPN suffix for cloud sign-in

A .local domain can’t be verified in Entra ID, so users whose sign-in name ends in .local sync to the cloud with an onmicrosoft.com address instead [3]. The fix is an alternative UPN suffix that matches a domain you’ve verified in Entra.

In Active Directory Domains and Trusts, right-click the top node, choose Properties, and add the public domain on the UPN Suffixes tab [3]. Users can then sign in as <user>@<public-domain> while the forest stays .local.

New users still default to the forest’s own suffix, so set the UPN when you create or fix an account:

Set-ADUser -Identity "<user>" -UserPrincipalName "<user>@<public-domain>"

DNS forwarders

The domain controller answers for the internal zone. Everything else, it has to ask someone. In DNS Manager, the server’s Properties > Forwarders tab takes the upstream resolvers. I used two public resolvers so one outage doesn’t stop resolution. Microsoft’s guidance is to pick upstream servers that are independently available and to test each one before relying on it [4].

From the domain controller, both of these should resolve:

nslookup <ad-domain>
nslookup google.com

Moving DHCP off the firewall

The firewall was handing out addresses at first. Moving DHCP took four steps:

  1. Install the DHCP Server role on the domain controller.
  2. Authorize it in Active Directory, either from the post-install wizard or with Add-DhcpServerInDC [1].
  3. Create a scope for the server network: an address range, the firewall as router (option 3), the domain controller as DNS server (option 6), and the AD domain name.
  4. Turn off the DHCP server on the firewall’s LAN interface, so two servers never answer the same request.

I kept a small block of addresses at the bottom of the range out of the scope for servers with static IPs, like the domain controller itself.

Each workstation and management VLAN gets its own scope later, with that VLAN’s gateway as the router option. Clients on those VLANs reach this server through a DHCP relay on the firewall, because DHCP broadcasts don’t cross subnets on their own.

What this gives you

One server is now the source of truth for who you are (AD), where things are (DNS) and what address you get (DHCP). The firewall does one job. That separation matters later: the domain controller is a Tier 0 asset, and Microsoft’s tier model treats anything with control over it as Tier 0 as well [5]. Keeping its roles clear makes it easier to decide what else is allowed to touch it.

References

  1. Quickstart: Install and configure DHCP Server
  2. Selecting the Forest Root Domain
  3. Prepare a nonroutable domain for directory synchronization
  4. Configure DNS forwarding in Windows Server
  5. Tier model for Active Directory Domain Services

Comment section

Sorry babes, you have to sign into Github to comment. Feel free to let me know what's on your mind!