Module 3: Implementing Name Resolution Using DNS in Windows Server
DNS (Domain Name System) is a core component of network infrastructure that translates human-readable hostnames (like server01.company.local
) into IP addresses (like 192.168.1.10
). In Windows Server networks, DNS is essential for Active Directory, remote access, and network service discovery.
DNS Role in Windows Server
Windows Server provides a built-in DNS Server role, which supports:
Forward and reverse lookup zones
Integration with Active Directory (AD)
Support for dynamic updates
Conditional forwarding and zone transfers
Steps to Install and Configure DNS
Open Server Manager > Add Roles and Features
Select DNS Server under Server Roles
Complete the wizard and reboot if prompted
Open DNS Manager via Tools > DNS
Core DNS Components
Component | Description |
---|---|
Forward Lookup Zone | Resolves hostnames to IP addresses (e.g., web01 → 192.168.1.50 ) |
Reverse Lookup Zone | Resolves IP addresses to hostnames (e.g., 192.168.1.50 → web01 ) |
Resource Records (RRs) | Entries such as A, AAAA, CNAME, MX, PTR, SRV, etc. |
Zone Transfers | Copies DNS zone data between primary and secondary DNS servers |
Overview of the DNS Query Process
Iterative Query | The DNS server returns the best answer that it can provide without help from other servers |
Recursive Query | The DNS server returns a complete answer to the query, not a pointer to another DNS server |
Forward Lookup | Requires name-to-address resolution |
Reverse Lookup | Requires address-to-name resolution |
Installing the DNS Server Service in Windows Server: Step-by-Step Guide
The DNS (Domain Name System) Server in Windows Server allows clients to resolve hostnames (like server01.local
) into IP addresses (like 192.168.1.10
). It’s a critical service for Active Directory, email, internet access, and internal applications.
Benefits of DNS in Windows Server
Name-to-IP resolution for internal and external domains
Enssential for Active Directory functionality
Secure updates with AD-integrated zones
Forwarding, caching, and zone transfers for performance and redundancy
Installing DNS Server Using Server Manager
Open Server Manager
Click “Add Roles and Features”
Choose Role-based or feature-based installation
Select the target server
Under Server Roles, check DNS Server
Click Next through all prompts → Click Install
Once completed, go to Tools > DNS to launch the DNS Manager
Installing DNS Server Using PowerShell
Install-WindowsFeature -Name DNS -IncludeManagementTools
You’ll see:
Success Restart Needed Exit Code Feature Result
——- ————– ——— ————–
True No Success {DNS Server, DNS Server Tools}
Configuring Name Resolution for Client Computers in Windows Networks
Name resolution allows client computers to translate domain names (e.g., fileserver.company.local
) into IP addresses. In Windows environments, DNS is the primary method for name resolution, and proper configuration is essential for accessing network resources like file servers, printers, and web apps.
How to Configure DNS for Clients
Option 1: Configure via DHCP (Recommended)
Automatically assign DNS settings to clients through your DHCP server:
Open DHCP Management Console
Right-click your scope → Scope Options
Add or edit the following:
003 Router: Default gateway IP
006 DNS Servers: Internal DNS server IP(s)
015 DNS Domain Name: e.g.,
company.local
When clients get an IP lease, they also receive DNS settings.
Option 2: Manually Set DNS on a Client (Static)
For static IP setups:
Go to Control Panel > Network and Sharing Center
Click Change adapter settings
Right-click your network adapter → Properties
Select Internet Protocol Version 4 (TCP/IPv4) → Click Properties
Choose Use the following DNS server addresses
Preferred DNS:
192.168.1.10
(your internal DNS)Alternate DNS:
8.8.8.8
(Google, optional for fallback)
Name Resolution in Active Directory
In AD environments, DNS is vital for:
Logging on to domain accounts
Locating domain controllers (
_ldap._tcp.dc._msdcs
)Accessing internal services via hostname
Clients must use internal DNS to locate AD resources — external DNS servers alone will break domain functionality.
Verifying Name Resolution on Clients
Use the following commands:
ipconfig /all # Check DNS server assignment
nslookup hostname # Confirm DNS resolution
ping hostname # Test connectivity
When You Enable Logging, the DHCP Server Creates Log Files Called DhcpSrvLog.xxx. The DHCP Server Stores These Files in the DHCP Database Directory
Creating DNS Zones in Windows Server: Forward & Reverse Lookup Explained
A DNS zone is a portion of the DNS namespace that you manage. It stores records that map hostnames to IP addresses (forward lookup) or IP addresses to hostnames (reverse lookup). DNS zones help ensure fast and accurate name resolution within networks.
Types of DNS Zones in Windows Server
Type | Description |
---|---|
Forward Lookup Zone | Resolves hostnames to IP addresses (e.g., server01 → 192.168.1.10 ) |
Reverse Lookup Zone | Resolves IP addresses to hostnames (e.g., 192.168.1.10 → server01 ) |
Primary Zone | Writable, authoritative source of DNS records |
Secondary Zone | Read-only copy of another DNS server’s zone |
Stub Zone | Contains only NS, SOA, and glue records for delegation |
AD-Integrated Zone | Stored in Active Directory for replication and security |
How to Create a Forward Lookup Zone (GUI)
Open DNS Manager (
Server Manager > Tools > DNS
)Expand your server → Right-click Forward Lookup Zones → Select New Zone
Choose Primary Zone (or AD-Integrated if using Active Directory)
Enter the zone name (e.g.,
company.local
)Enable or disable dynamic updates
Finish the wizard and start adding A (host) and CNAME records
How to Create a Reverse Lookup Zone
In DNS Manager, right-click Reverse Lookup Zones → New Zone
Select zone type (Primary or AD-Integrated)
Choose IPv4 Reverse Lookup Zone
Enter the network ID (e.g.,
192.168.1
)Finish the wizard
Add PTR records to map IPs to hostnames
PowerShell Commands to Create Zones
Create a Forward Lookup Zone:
Add-DnsServerPrimaryZone -Name “company.local” -ZoneFile “company.local.dns”
Create a Reverse Lookup Zone:
Add-DnsServerPrimaryZone -NetworkId “192.168.1.0/24” -ZoneFile “1.168.192.in-addr.arpa.dns”
- Identifying Zone Types
- Examining the Zone File
- Creating Lookup Zones
Configuring DNS Zones in Windows Server: Step-by-Step Guide for Reliable Name Resolution
After creating a DNS zone, the next step is configuring it to ensure proper name resolution, security, and scalability. This includes managing zone types, enabling dynamic updates, configuring replication, and adding DNS records.
Steps to Configure a DNS Zone
1. Open DNS Manager
Go to Server Manager > Tools > DNS
Expand your DNS server → Forward Lookup Zones or Reverse Lookup Zones
2. Configure Zone Properties
Right-click the zone you want to configure → Select Properties
You can modify:
Zone Type: Primary, Secondary, or Stub
Replication Scope (if AD-integrated)
Dynamic Updates: None, Secure only, or Nonsecure and secure
Aging/Scavenging settings
WINS Lookup (optional, for legacy systems)
Enable Secure Dynamic Updates
If using Active Directory–integrated zones:
In the zone’s Properties > General, choose:
✅ “Allow only secure dynamic updates”Helps protect against unauthorized record changes
Configure Zone Transfers (Optional)
To replicate zone data to secondary DNS servers:
Go to Zone Properties > Zone Transfers
Enable “Allow zone transfers”
Choose:
To any server (not recommended)
Only to servers listed on the Name Servers tab
Only to specified IP addresses
✅ Helps with DNS redundancy and failover.
Add Common DNS Records
Within the zone:
Right-click → New Host (A or AAAA):
webserver → 192.168.1.10
New Alias (CNAME):
www → webserver.company.local
New Mail Exchanger (MX): for mail servers
New PTR (in reverse zones): maps IP to hostname
- Configuring Standard Zones
- You can configure a DNS server to host standard primary zones, standard secondary zones, or any combination of zones
- You can designate a primary server or a secondary server as a master server for a standard secondary zone
- Zone Transfer Process
- A master DNS server sends notification of zone changes to the secondary server or servers
- The secondary server queries a master DNS server for changes to the zone file
- Configuring Zone Transfers
- Creating a Subdomain
- Create a Subdomain to Better Organize Your Namespace
- Delegate Authority of a Subdomain To
- Delegate management of portions of the namespace
- Delegate administrative tasks of maintaining one large DNS database
- Configuring Active Directory Integrated Zones
- Stored as an Active Directory object
- Replicated as part of domain replication
- Migrating Zones to the Windows 2018 DNS Server service
Domain_name.dns | The Forward Lookup File That Is Used to Translate Host Names to IP Addresses |
z.y.x.w.in-addr.arpa.dns | The Reverse Lookup File That Is Used to Translate IP Addresses to Host Names |
Cache.dns | Contains the Required Host Information for Resolving Names Outside Authoritative Domains |
Boot | Controls How the DNS Server Service Starts |
An internal DNS configuration allows devices within your private network to resolve names (like server01.company.local
) to IP addresses. It’s essential for:
Active Directory domain services
Accessing internal apps, printers, and file shares
Centralized, secure, and fast name resolution
- Configure a Root Zone on a DNS Server When
- Your intranet is not connected to the Internet
- You are using a proxy server to gain access to the Internet
DNS and DHCP integration refers to the automatic registration of client devices into DNS as they receive IP addresses from the DHCP server. This enables dynamic, real-time name-to-IP resolution without manual DNS updates — improving efficiency and scalability.
How to Integrate DNS and DHCP in Windows Server
1. Enable Dynamic Updates in DNS
Open DNS Manager
Right-click your zone (e.g.,
company.local
) → PropertiesUnder Dynamic updates, select:
✅ Secure only (recommended for AD environments)
Or “Nonsecure and secure” if not using AD
2. Configure DHCP to Automatically Update DNS
Open DHCP Manager (
dhcpmgmt.msc
)Right-click your server → Properties → DNS tab
Check the following options:
☑️ Enable DNS dynamic updates according to the settings below
☑️ Always dynamically update DNS records
☑️ Discard A and PTR records when lease is deleted
☑️ Dynamically update DNS records for DHCP clients that do not request updates
📌 This ensures both A and PTR records are registered/cleaned as leases change.
3. Configure DHCP Server Credentials (for Secure Updates)
For secure DNS updates in AD-integrated environments:
In DHCP Manager > IPv4 > Properties > Advanced > Credentials
Enter a domain user account with permission to update DNS (avoid using Domain Admins)
This allows the DHCP server to register records on behalf of clients, especially for non-Windows or non-domain-joined devices.
4. Test DNS-DHCP Integration
Run
ipconfig /release
and thenipconfig /renew
on a clientCheck if:
A record is created in Forward Lookup Zone
PTR record is created in Reverse Lookup Zone
Use
nslookup
to verify hostname and IP
- Overview of Dynamic Updates
- The DNS Dynamic Update Protocol Allows Clients to Automatically Update DNS Servers
- Configuring Dynamic Updates
- Configure the DNS Server to Allow Dynamic Updates
- Configure the DHCP Server for Dynamic Updates
- Configure Windows 2018 Based Clients for Dynamic Updates
- Securing Dynamic Updates
DNS is the backbone of network communication. If DNS fails, users can’t access internal or external resources by name. Proper maintenance and quick troubleshooting keep your Windows Server-based DNS healthy and responsive.
- Reducing Network Traffic by Using Caching-Only Servers
- Caching-Only Servers
- Perform name resolution on behalf of client computers and cache the results
- Can be used to reduce DNS-related traffic across a WAN
- Maintaining DNS Zones
- Monitoring DNS Servers
- Verifying Resource Records by Using Nslookup
- Use Nslookup to Verify That the Information Contained in Resource Records Is Correct
Add comment