Windows Server · Lesson 13

DNS Server Security Review

Review DNS zones, records, forwarders, recursion, interfaces, dynamic updates, and zone transfers while preserving the name resolution Active Directory and required services depend on.

DNS hardening is not about deleting unfamiliar records. It is about understanding which names and services must resolve, then reducing only the exposure that is clearly unnecessary.

Lesson Snapshot

Core concepts6
Primary consolednsmgmt.msc
AD concernSRV + discovery
GoalResolve + restrict

Learning objectives

What this lesson should help you do

01

Review Windows Server DNS zones, records, forwarders, interfaces, recursion, dynamic updates, and transfer settings safely.

02

Explain why DNS is especially important on an Active Directory domain controller.

03

Use DNS Manager, Event Viewer, PowerShell, and client-side resolution tests to inspect DNS without deleting records blindly.

04

Recognize suspicious or overly broad DNS settings while preserving required name resolution.

05

Distinguish between forward lookup zones, reverse lookup zones, conditional forwarding, recursion, and zone transfers.

06

Verify DNS from an authorized client after any DNS configuration change.

Core concepts

Know what part of DNS you are reviewing

Zone

A DNS administrative boundary containing records for a namespace, such as a domain or reverse-lookup network.

Resource record

A DNS entry such as A, AAAA, CNAME, MX, NS, PTR, or SRV that maps names to addresses, services, or other DNS information.

Forwarder

A DNS server that receives queries this server cannot answer locally and attempts to resolve them on its behalf.

Recursion

The process of resolving a DNS query by contacting other DNS servers until an answer is found.

Dynamic update

Allows authorized clients or services to create or update DNS records automatically instead of relying only on manual changes.

Zone transfer

Copies DNS zone data to another DNS server, usually for an authorized secondary-server relationship.

Core idea

DNS is infrastructure, not just a list of hostnames

On a Windows domain, authentication, Group Policy, domain discovery, and many applications depend on correct DNS behavior.

Active Directory warning

Unfamiliar SRV records may be essential

Records containing names such as _ldap, _kerberos, and _msdcs are normal in Active Directory environments.

Do not delete DNS records simply because their names look unusual.

Tool map

Exactly where to review DNS

DNS Manager

Server Manager → Tools → DNS

Quick action

Win + R → dnsmgmt.msc

Primary GUI for reviewing DNS servers, zones, records, forwarders, server interfaces, recursion-related settings, and zone transfers.

Forward Lookup Zones

DNS Manager → server → Forward Lookup Zones

Quick action

Expand the required zone and inspect records.

Review the zone that supports the scenario-required domain or application namespace.

Reverse Lookup Zones

DNS Manager → server → Reverse Lookup Zones

Quick action

Review PTR records when reverse resolution is part of the environment.

Reverse zones may be useful for logging, troubleshooting, and applications, but not every environment requires every reverse zone.

Server properties

DNS Manager → right-click the DNS server → Properties

Quick action

Review Interfaces, Forwarders, Advanced, Monitoring, and other applicable tabs.

Server-wide settings can affect every zone and client using the DNS server.

Zone properties

DNS Manager → right-click the zone → Properties

Quick action

Review General, Name Servers, Zone Transfers, and applicable security settings.

Zone-level changes can affect domain registration, replication, secondary servers, and client resolution.

Event Viewer

Event Viewer → Applications and Services Logs → DNS Server

Quick action

Review recent DNS Server warnings and errors.

Event evidence helps explain service failures, loading problems, update issues, and some configuration changes.

PowerShell

Start → search PowerShell → Run as administrator when required

Quick action

Use DNS Server cmdlets for read-only inspection.

Cmdlets such as Get-DnsServerZone, Get-DnsServerResourceRecord, Get-DnsServerForwarder, and Get-DnsServerRecursion are useful when the DNS role tools are installed.

DNS and Active Directory

Why broken DNS can look like a broken domain

Domain discovery

Active Directory clients use DNS to locate domain controllers and directory services.

SRV records

Service records help clients find LDAP, Kerberos, Global Catalog, and other domain services.

Domain controller registration

Domain controllers register important DNS records automatically when DNS and Netlogon-related functions are healthy.

Group Policy

Domain clients normally need working DNS to find domain controllers and retrieve Group Policy reliably.

Authentication

Broken DNS can appear to be an authentication problem because clients cannot locate the correct domain services.

Replication

DNS problems can interfere with communication between domain controllers and other infrastructure components.

Record types

Understand what each record is doing before editing it

A

Maps an IPv4 hostname to an IPv4 address.

Check whether the hostname and address match the required system.

AAAA

Maps an IPv6 hostname to an IPv6 address.

Confirm the record is intentional if IPv6 is part of the environment.

CNAME

Creates an alias that points one DNS name to another canonical name.

Verify the alias still points to an authorized, required host.

MX

Identifies mail servers for a domain.

Review only when mail service is part of the authorized environment.

NS

Identifies authoritative DNS servers for a zone.

Unexpected name-server entries deserve investigation.

PTR

Maps an IP address back to a hostname in a reverse lookup zone.

Useful for reverse resolution and troubleshooting.

SRV

Publishes the location of services, including important Active Directory services.

On a domain controller, do not delete unfamiliar SRV records without understanding their AD role.

Zone review

Ten questions before changing a zone

01

Is this zone required by the scenario?

02

Is the zone Active Directory-integrated, primary, secondary, or another supported type?

03

Which DNS servers are authoritative for the zone?

04

Are dynamic updates enabled, disabled, or restricted?

05

Are zone transfers enabled?

06

If transfers are enabled, which servers are authorized to receive them?

07

Are there unexpected or duplicate A, CNAME, NS, MX, PTR, or SRV records?

08

Are stale-looking records actually unused, or do clients/services still depend on them?

09

Does aging/scavenging apply to this zone?

10

How will required names be tested after a change?

Server review

Ten questions before changing server-wide DNS

01

Which network interfaces is DNS listening on?

02

Which forwarders are configured?

03

Is recursion required for the clients using this server?

04

Is this server exposed to networks that should not use it recursively?

05

Does the firewall allow only the DNS traffic the server role requires?

06

Is the DNS Server service running?

07

Does the server use root hints, forwarders, or both for external resolution?

08

Are conditional forwarders configured for any required internal namespace?

09

Is the server also an Active Directory domain controller?

10

What client-side tests prove the server is resolving names correctly?

PowerShell inspection

Inventory DNS without changing it

DNS service state

Get-Service -Name "DNS"

Shows whether the DNS Server service is running.

DNS zones

Get-DnsServerZone | Select-Object ZoneName, ZoneType, IsDsIntegrated, IsReverseLookupZone, DynamicUpdate

Inventories DNS zones and shows useful zone-type and dynamic-update information.

Zone records

Get-DnsServerResourceRecord -ZoneName "example.local" | Select-Object HostName, RecordType, TimeStamp, RecordData

Lists records in a selected zone. Replace example.local with the authorized zone.

Forwarders

Get-DnsServerForwarder

Shows the DNS servers used as forwarders.

Recursion

Get-DnsServerRecursion

Shows recursion-related DNS server configuration.

DNS server interfaces

Get-DnsServerSetting -All | Select-Object -ExpandProperty ListeningIpAddress

Shows configured DNS listening addresses when supported by the installed DNS Server module.

DNS Server events

Get-WinEvent -LogName 'DNS Server' -MaxEvents 40 | Select-Object TimeCreated, Id, LevelDisplayName, Message

Reviews recent DNS Server events for warnings, errors, and operational clues.

Client-style resolution test

Resolve-DnsName "host.example.local" -Server "dns-server-name"

Tests a specific name against the intended DNS server. Replace the example values with the authorized target.

Dynamic updates

Automatic registration should match the zone design

None

Records are managed manually. This can reduce automatic changes but may not fit environments that rely on dynamic registration.

Nonsecure and secure

Allows a broader set of dynamic updates and can be riskier because unauthorized changes may be easier.

Secure only

Available for Active Directory-integrated zones and uses domain security to control dynamic updates.

Role-first decision

Do not change dynamic-update mode without considering domain clients, DHCP integration, server registration, and the scenario.

Zone transfers

Share zone data only with authorized DNS servers

Transfers disabled

Appropriate when no authorized secondary DNS server requires a copy of the zone.

Authorized secondary servers

If transfers are required, limit them to the DNS servers that actually need the zone.

Broad transfer exposure

Allowing zone transfers to arbitrary hosts can reveal the zone's records and internal naming structure.

Do not break redundancy

Disabling transfers can break legitimate secondary DNS if the design depends on them.

Forwarders

Know where unresolved queries are being sent

Known resolver

Each forwarder should have an understood purpose and belong to the authorized environment or approved upstream resolver.

Unexpected address

An unknown forwarder can redirect unresolved queries and deserves investigation.

Conditional forwarder

Routes queries for a specific DNS namespace to designated DNS servers and may be required for trusts or partner namespaces.

Forwarder failure

If a forwarder is unreachable, clients may experience slow or failed external resolution depending on server configuration.

Recursion

Resolve what clients need without becoming an open resolver

Internal recursive resolver

Many internal DNS servers need recursion so clients can resolve names outside locally hosted zones.

Open recursion risk

Providing recursion to untrusted networks can create unnecessary exposure and may allow abuse.

Do not disable blindly

Turning off recursion can break ordinary client resolution even when authoritative zones still work.

Use network boundaries

Firewall scope, interfaces, and network design can help limit who can query the server.

Aging and scavenging

Stale-record cleanup needs careful timing

Aging

Tracks eligible dynamically registered records over time so stale records can eventually be identified.

Scavenging

Removes eligible stale records according to configured aging and scavenging behavior.

Static records

Static records are generally treated differently from dynamically timestamped records and should not be assumed stale just because they are old.

Caution

Aggressive scavenging can delete still-needed records if the environment is not configured correctly.

Suspicious signals

DNS settings that deserve deeper investigation

Unknown forwarder

A resolver outside the expected environment may redirect DNS queries or create an unnecessary dependency.

Unexpected NS record

An unfamiliar authoritative DNS server in the zone deserves investigation.

Broad zone transfer

Transfers allowed to any server expose zone data more broadly than necessary.

Unusual host record

A new A or CNAME record pointing a trusted name to an unexpected system should be investigated.

Duplicate conflicting records

Multiple records for the same name can cause intermittent or misleading resolution behavior.

DNS listening on unnecessary interfaces

The server may be reachable from networks that should not use the DNS service.

Troubleshooting

When DNS resolution does not match expectations

Symptom

Clients cannot resolve the Active Directory domain.

Check

Confirm clients use the intended DNS server, verify the DNS service, inspect the AD-integrated zone and SRV records, test domain-name resolution, and review DNS Server events.

Symptom

Internal names resolve but Internet names do not.

Check

Review forwarders, recursion, root-hint behavior, firewall/network reachability, and whether the server is intended to resolve external names.

Symptom

One hostname resolves to the wrong address.

Check

Inspect A/AAAA/CNAME records, duplicate entries, dynamic-update history, client cache, DNS server cache, and whether the application recently moved.

Symptom

A DNS setting returns after being changed.

Check

Active Directory replication, automation, Group Policy, DHCP registration, or management tooling may be restoring the setting or record.

Symptom

DNS works on the server but not from clients.

Check

Review firewall scope, listening interfaces, client DNS settings, routing, network profile, and whether queries are reaching the server.

Symptom

Zone transfer to an authorized secondary fails.

Check

Review Zone Transfers settings, authorized name servers, firewall/network access, secondary-server configuration, and DNS Server events.

Client verification

Prove the DNS server works from the client side

Resolve the domain

Resolve-DnsName example.local

Confirms the client can resolve the required domain namespace.

Resolve a required host

Resolve-DnsName filesrv.example.local

Confirms a required host record resolves to the expected address.

Query a specific DNS server

nslookup filesrv.example.local dns-server-name

Tests the intended DNS server directly.

Check an AD service record

nslookup -type=SRV _ldap._tcp.dc._msdcs.example.local

On an Active Directory domain, helps confirm expected LDAP domain-controller discovery records exist.

Change discipline

Ten steps for controlled DNS hardening

01

Read the scenario and identify required DNS namespaces.

02

Record the DNS server role and whether the server is a domain controller.

03

Record existing zones, forwarders, interfaces, and transfer settings.

04

Record the specific DNS record before changing it.

05

Confirm whether DHCP, AD, applications, or clients update the record dynamically.

06

Change one DNS setting or record at a time.

07

Avoid deleting unfamiliar SRV or infrastructure records blindly.

08

Verify internal name resolution.

09

Verify required external or forwarded resolution when applicable.

10

Verify from an authorized client, not only from the DNS server itself.

Decision cases

DNS decisions in server context

Unknown forwarder appears

The DNS server forwards unresolved queries to an address not listed in the scenario documentation.

The address may be unauthorized, but removing it immediately could also break external resolution if it is legitimate.

Response

Identify the owner and network location of the forwarder, compare it with authorized architecture, test current resolution, then replace or remove it only when justified.

Zone transfers are allowed broadly

A required internal zone permits transfers to servers beyond the known secondary DNS hosts.

The zone is required, but transfer scope is broader than necessary.

Response

Identify legitimate secondary servers, preserve required redundancy, and restrict transfers to authorized systems.

Student wants to delete unfamiliar SRV records

The records contain names such as _ldap and _kerberos.

These records are normal and important in Active Directory environments.

Response

Preserve them, confirm domain-controller registration and resolution, and investigate only records that conflict with the actual AD design.

DNS listens on an unused network interface

The server has multiple interfaces but only one network should use the DNS role.

Listening on unnecessary interfaces may broaden exposure.

Response

Confirm no required clients or replication path uses the interface, then restrict DNS listening only if the server role and network design support it.

Fictional defensive lab

Review DNS on DC-PRACTICE

Step 01

Read the fictional requirement

DC-PRACTICE is the required Active Directory domain controller and DNS server for CYBERSHIELD.LOCAL. Clients must resolve domain names and one approved external update site.

Step 02

Inventory zones and server settings

Open DNS Manager and use PowerShell to record zones, forwarders, recursion state, listening interfaces, and the DNS service state.

Step 03

Review the domain zone

Inspect A, CNAME, NS, and SRV records. Preserve expected Active Directory records and identify one suspicious duplicate A record.

Step 04

Review forwarders and transfers

One approved forwarder is documented. A second unknown forwarder exists. Zone transfers are enabled more broadly than the known secondary-server design requires.

Step 05

Harden narrowly

Preserve the required forwarder and legitimate zone-transfer target, remove only clearly unauthorized configuration, and correct the duplicate record after confirming the intended address.

Step 06

Verify from a client

Confirm domain resolution, a required host, Active Directory SRV records, and the approved external update site all resolve correctly.

Common mistakes

DNS mistakes that can break the domain

Deleting unfamiliar SRV records

Active Directory relies on SRV records that may look strange to students who have only worked with A records.

Disabling recursion blindly

Clients may lose the ability to resolve names outside locally hosted zones.

Removing every forwarder

Required external resolution or partner-domain lookups may depend on them.

Allowing zone transfers to everyone

Broad transfer access exposes zone information unnecessarily.

Deleting stale-looking records without dependency checks

Servers, applications, or static infrastructure may still rely on old-looking records.

Testing only on the DNS server

The server can resolve locally while clients fail because of firewall, interface, or client-configuration problems.

Reflection

Test your DNS reasoning

Question 1

Why is DNS especially important to Active Directory?

Question 2

Why should unfamiliar SRV records not be deleted automatically?

Question 3

When can a forwarder be both useful and risky?

Question 4

Why can open recursion create unnecessary exposure?

Question 5

What is the difference between dynamic updates and zone transfers?

Question 6

What should be tested from a client after changing DNS settings?

Verification checklist

Confirm DNS and domain discovery still work

01

The DNS Server service is running.

02

Required forward lookup zones are present.

03

Required reverse zones remain intact when applicable.

04

Expected Active Directory SRV records remain available.

05

Forwarders match the authorized environment.

06

Zone transfers are limited to required secondary servers when transfers are used.

07

Dynamic-update mode matches the zone design and scenario.

08

DNS listens only on intended interfaces when interface restriction is used.

09

Required internal names resolve from an authorized client.

10

Required external or conditional-forwarded names resolve when applicable.

Competition checklist

Before leaving DNS review

01

Open DNS Manager or dnsmgmt.msc.

02

Review Forward Lookup Zones.

03

Review Reverse Lookup Zones when applicable.

04

Review server Interfaces.

05

Review Forwarders.

06

Review recursion behavior.

07

Review zone dynamic updates.

08

Review zone transfers and name servers.

09

Inspect important A, CNAME, NS, PTR, and SRV records.

10

Check DNS Server events.

11

Use Resolve-DnsName or nslookup for verification.

12

Verify from an authorized client after every major DNS change.

Next Windows Server lesson

DHCP Server Security Review

Next, review DHCP authorization, scopes, leases, reservations, options, exclusions, bindings, audit logs, and the network dependencies that keep clients configured correctly.

Open Lesson 14 →