DNS Ad
DNS Ad
DNS
DNS is a distributed hierarchical database composed mainly of computer name and IP address
pairs. The notion of a distributed database means that no single database contains all data and
hierarchical means there’s no structure to how information is stored and accessed in the database.
In order to resolve a name to an address, a DNS lookup will often require multiple queries to a
hierarchy of DNS servers.
DNS can also be described as an inverted tree structure the so called DNS namespace ( see figure
12-1). In this context each domain has one or more servers that are authoritative for the domain.
The Root servers keep a database of addresses of other DNS servers managing top-level domain
names, called top-level domain (TLD) servers.
Forward lookup zone (FLZ) – contains records that translate names to IP addresses, such
as A, AAAA, and MX records
Reverse lookup zone (RLZ) – contains PTR records that map IP addresses to names and is
named after the IP network address (IPv4 or IPv6) of the computers whose records it
contains
Zone Type
Three different types of zones:
Primary zone - contains a read/write master copy of all resource records for the zone; it is
considered authoritative for the zone
Secondary zone - contains a read-only copy of all resource records for the zone; it is
considered authoritative for the zone
Stub zone - contains a read-only copy of only the SOA and NS records for a zone and the
necessary A records to resolve NS records; not authoritative
Status
Type
Replication
Dynamic updates
Aging
DNS Records
According to Microsoft, after you create the necessary zone files, you can add records to the
zones. Computers that need to be accessed from Active Directory and DNS domains must have
DNS records. The following main records exist in an AD integrated DNS server.
Round Robin
Load sharing can be configured among servers running mirrored services
Accomplished by creating multiple A records with the server’s name in the records, but
with each entry configured with a different IP address
DNS will then respond to queries by sending all addresses associated with the server’s
name, but will also vary their order
This process is called round robin because each IP address is placed first in the list an
equal number of times
Recursive Queries
Recursion is enabled on Windows DNS servers by default, but there are two ways to
change this setting
o First involves configuring forwarders
o Second is the “Disable recursion (also disables forwarders)” option in the
Advanced tab of the DNS server’s Properties dialog box
You might want to disable recursion when you have a public DNS server containing
resource records for your publicly available servers
DNS Troubleshooting commands
Windows has several tools to administer, monitor, and troubleshoot DNS server operation,
including:
DNS Manager
dcdiag /test:dns
dnscmd.exe
PowerShell
Event Viewer
dnslint
nslookup
ipconfig
Performance Monitor
Protocol analyzer
In order to troubleshoot DNS queries you need a clear picture in your mind of the DNS lookup
process, which involves the following steps:
/all - displays IP addresses of the configured DNS servers as well as the DNS suffix
search list
/displaydns - displays the local DNS cache
/flushdns - deletes the local DNS cache