
330
Understanding DNS Servers and Zones
Understanding DNS Servers and Zones
A DNS server is a computer that runs DNS server software, helps to maintain
the DNS database, and responds to DNS name resolution requests from
other computers. Although many DNS server implementations are available,
the two most popular are Bind and the Windows DNS service. Bind runs
on Unix-based computers (including Linux computers), and Windows DNS
(naturally) runs on Windows computers. Both provide essentially the same
services and can interoperate.
The key to understanding how DNS servers work is to realize that the DNS
database — that is, the list of all the domains, subdomains, and host
mappings — is a massively distributed database. No single DNS server
contains the entire DNS database. Instead, authority over different parts of
the database is delegated to different servers throughout the Internet.
For example, suppose that I set up a DNS server to handle name resolutions
for my LoweWriter.com domain. Then, when someone requests the IP
address of doug.LoweWriter.com, my DNS server can provide the answer.
However, my DNS server wouldn’t be responsible for the rest of the Internet.
Instead, if someone asks my DNS server for the IP address of some other
computer, such as coyote.acme.com, my DNS server will have to pass the
request on to another DNS server that knows the answer.
Zones
To simplify the management of the DNS database, the entire DNS namespace
is divided into zones, and the responsibility for each zone is delegated to a
particular DNS server. In many cases, zones correspond directly to domains.
For example, if I set up a domain named LoweWriter.com, I can also set
up a DNS zone called LoweWriter.com that’s responsible for the entire
LoweWriter.com domain.
However, the subdomains that make up a domain can be parceled out to
separate zones, as shown in Figure 4-2. Here, a domain named LoweWriter.
com has been divided into two zones. One zone, us.LoweWriter.com, is
responsible for the entire us.LoweWriter.com subdomain. The other zone,
LoweWriter.com, is responsible for the entire LoweWriter.com domain
except for the us.LoweWriter.com subdomain.
Why would you do that? The main reason is to delegate authority for the
zone to separate servers. For example, Figure 4-2 suggests that part of the
LoweWriter.com domain is administered in the United States and that part
of it is administered in France. The two zones in the figure allow one server
to be completely responsible for the U.S. portion of the domain, and the
other server handles the rest of the domain.
33_625873-bk04ch04.indd 33033_625873-bk04ch04.indd 330 9/21/10 10:30 PM9/21/10 10:30 PM