Dns Dhcp Basic
Workgroup DNS & DHCP Server Setup
(NO DOMAIN)
For isolated networks, home labs, or small offices, you can run a “Workgroup” DNS/DHCP server. This allows you to resolve local hostnames (like myserver.lan) and manage IP addresses centrally without needing a full Active Directory Domain.
⚠ Network Warning: Do not plug this server into an existing network (like your corporate office) if there is already a DHCP server running. Two DHCP servers on the same LAN will cause IP conflicts and take down the network.
Step 1: Set a Static IP (Mandatory)
A server providing infrastructure services must have a static IP address so clients always know where to find it.
- Open Control Panel > Network and Sharing Center.
- Click Change adapter settings.
- Right-click your network adapter → Properties.
- Select Internet Protocol Version 4 (TCP/IPv4) → Properties.
- Use the following IP address (Example configuration):
- IP Address:
192.168.1.10 - Subnet mask:
255.255.255.0 - Default gateway:
192.168.1.1(Your internet router)
- IP Address:
- Use the following DNS server addresses:
- Preferred DNS server:
127.0.0.1(Point to itself) - Alternate DNS server:
8.8.8.8(Google, for backup)
- Preferred DNS server:
Step 2: Install Roles
- Open Server Manager.
- Click Add Roles and Features.
- Select Role-based or feature-based installation.
- Select your local server.
- On Server Roles, check:
- ✅ DHCP Server
- ✅ DNS Server
- Finish the installation.
Step 3: Configure DNS (The “Phonebook”)
You need a “Zone” to store your local names. Since we have no domain, we will create a standalone Primary Zone.
- Open DNS Manager (
dnsmgmt.msc). - Right-click your server name → New Zone…
- Zone Type: Select Primary zone.
- Note: “Store the zone in Active Directory” will be disabled.
- Zone Name: Enter a suffix for your network (e.g.,
lan.localoroffice.internal). - Zone File: Accept the default (
lan.local.dns). - Dynamic Updates: Select Do not allow dynamic updates (safest for Workgroups).
- Click Finish.
Add “Forwarders” (For Internet Access)
This tells your server: “If you don’t know the answer (like google.com), ask 8.8.8.8.”
- In DNS Manager, right-click your Server Name (top of the tree) → Properties.
- Go to the Forwarders tab.
- Click Edit… and add public DNS servers:
1.1.1.18.8.8.8
- Click OK.
Step 4: Configure DHCP (The “Assigner”)
Now we create the “Scope” or pool of addresses the server can hand out.
1. Post-Install “Authorization”
- In Server Manager, click the Flag icon (top right notifications).
- Click Complete DHCP configuration.
- Important: Since you are in a Workgroup, select Skip AD authorization (if available) or simply Commit.
- Note: It may say “Failed” regarding AD, but it will succeed locally.
2. Create the Scope
- Open DHCP (
dhcpmgmt.msc). - Expand your server → Right-click IPv4 → New Scope…
- Name:
Office LAN. - IP Address Range:
- Start:
192.168.1.50 - End:
192.168.1.200 - Leave 1.1 - 1.49 free for static devices like your Router and Server.
- Start:
- Lease Duration: 8 Days (Default).
- Configure DHCP Options: Select Yes.
- Router (Default Gateway): Enter your router’s IP (e.g.,
192.168.1.1) → Add. - DNS Servers:
- Remove any auto-detected IPs.
- Add YOUR Server’s IP (
192.168.1.10) → Add. - Crucial: This ensures clients ask YOUR server for names, not the router.
- Domain Name: Enter the zone you created (e.g.,
lan.local).
- Router (Default Gateway): Enter your router’s IP (e.g.,
- Activate Scope: Select Yes.
Step 5: Verify Client Connectivity
Go to a client PC (Windows 10/11) on the same network switch.
- Open Command Prompt (
cmd). - Refresh the connection:
ipconfig /release ipconfig /renew - Check status:
ipconfig /all - Verify these values:
- DHCP Server:
192.168.1.10 - DNS Servers:
192.168.1.10 - Connection-specific DNS Suffix:
lan.local
- DHCP Server:
Troubleshooting Checklist
- Clients have no Internet?
- Check Step 3 (Forwarders). If your server doesn’t know where
8.8.8.8is, it can’t resolve web pages for clients. - Check the Server’s own DNS settings in Step 1. It must point to
127.0.0.1or8.8.8.8to resolve names itself.
- Check Step 3 (Forwarders). If your server doesn’t know where
- Clients getting “169.254.x.x” IP?
- This means DHCP failed to reach the client.
- Check Services.msc and ensure DHCP Server is “Running”.
- Check Firewall (
wf.msc) and ensure DHCP Server (UDP-In) rules are enabled.
- Server Name Resolution Failing?
- If clients can’t ping
printer.lan.local, you may need to manually add “A Records” in your DNS zone for those static devices.
- If clients can’t ping