Resolving Host Names by Using Domain Name System (DNS)
Resolving Host Names by Using Domain Name System (DNS)
Root Domain
A-Z
a-z
0-9
Hyphen (-)
Root “.”
Resource
Record
.com
.edu
Resource
Record
A query is a request for name resolution to a DNS server. There are two
types of queries: recursive and iterative
DNS clients and DNS servers both initiate queries for name
resolution
An authoritative DNS server for the namespace of the query will:
Check the cache, check the zone, and return the requested IP
address
A non-authoritative DNS server for the namespace of the query
will either:
Forward the unresolvable query to a specific query server
called a Forwarder
Use root hints to locate an answer for the query
How Recursive Queries Work
A recursive query is a query made to a DNS server, in which the DNS client
asks the DNS server to provide a complete answer to the query
172.16.64.11 Database
Root hints are DNS resource records stored on a DNS server that list the
IP addresses for the DNS root servers
Cluster of Cluster of
DNS Servers Root (.) Servers
Root Hints
com
DNS Server
Computer1 microsoft
How Iterative Queries Work
An iterative query is a query made to a DNS server in which the DNS client
requests the best answer that the DNS server can provide without seeking further
help from other DNS servers. The result of an iterative query is often a referral to
another DNS server lower in the DNS tree
Iterative Query
Local Root Hint (.)
Ask .com 1
DNS Server
Iterative
Query
Ask nw
ders or
.com
traders .com
wtra query f
.com
2
Itera
1
mai ursive
64.1
tive
Auth Que
ry
l1.n
orita
.16.
tive R
Rec
espo
172
nse
3
Computer1 nwtraders.com
How Forwarders Work
Iterative Query
Forwarder Root Hint (.)
Ask .com
Iterative
Query
ry
Ask nw
ue
traders .com
eQ
.11
.com
siv
.64
cur
Itera
.16
tive
Re
Que
172
Auth ry
orita
172.1 tive R
6. 64.11 espo
nse
Recu
r
mail1 sive query
.nwtr nwtraders.com
Local aders for
.com Computer1
DNS Server
How DNS Server Caching Works
Caching Table
Host Name IP Address TTL
clientA.contoso.msft. 192.168.8.44 28 seconds
Where’s
ClientA Client
is at
192.168.8.44
A?
ClientA
Client1
ClientA Client
Where’s is at
Client2 192.168.8.44
A?
Namespace: training.nwtraders.msft
DNS Server Resource records for the zone
training.nwtraders.msft
Host name IP address
DNS ClientA 192.168.2.45
Zone File: DNS ClientB 192.168.2.46
Training.nwtraders.msft.dns DNS ClientC 192.168.2.47
DNS ClientC
DNS ClientA DNS ClientB
A resource record (RR) is a standard DNS database structure containing information used
to process DNS queries
A zone is a portion of the DNS database that contains the resource records with the owner
names that belong to the contiguous portion of the DNS namespace
What Are Resource Records and Record Types?
Nwtraders
Zones Description
Read/Write
Read/write copy of a DNS database
Primary
Read-Only
Read-only copy of a DNS database
Secondary
Copy of
limited
records
Copy of a zone containing limited records
Stub
How to Change a DNS Zone Type
Namespace: training.nwtraders.msft.
DNS Client1 192.168.2.45
DNS Server Authorized Forward DNS Client2 192.168.2.46
for training Training
zone
DNS Client3 192.168.2.47
192.168.2.46 = ?
DNS Client3
DNS Client1
DNS Client2
How to Configure Forward and Reverse Lookup Zones