-->
Previous Table of Contents Next


Chapter 25
Configuring Domain Name Service

by Steve Burnett

In this chapter
Introducing DNS
Configuring the Resolver
Using the named Daemon to Set Up the Server
Troubleshooting

Originally, when the Internet was first formed, the number of hosts on the Net was very small. It was fairly easy to maintain the name/address mapping. Each host simply had a complete list of all host names and addresses in a local file. As the growth of the Internet accelerated, this system quickly became unwieldy. When a new host was added, it was necessary to update every host file on every computer. Also, because each new computer resulted in a new line in every host file, the size of the host files began to grow to quite a large size. Clearly, a new solution was needed.

Mapping Internet system names to IP addresses is a task that requires a good degree of consideration. With the explosive growth of the Internet over the past few years, the original system of maintaining host name to IP address mappings in a local flat ASCII file quickly proved impractical. With thousands of computers on the Net and more being added daily, a new system was needed. That new system was a network-wide distributed database known as BIND, the Berkeley Internet Domain server. Also referred to variously as the Domain Name Service, the Domain Name System, or DNS, this system provides an effective, relatively transparent host name to the IP address mapping mechanism.

DNS is notoriously hard to configure, but when you’re successful, it’s fairly easy to maintain. This chapter provides a basic overview of how to set up and configure a DNS system. It is, by no means, a complete reference; whole books are available on the subject.

Introducing DNS

DNS provides a mechanism for converting IP addresses into mnemonic names that represent hosts, networks, and mail aliases. It does this by dividing the entire Internet IP and name space into different logical groups. Each group has authority for its own computers and other information.

Because DNS is a complicated topic, it has its own specialized set of terms. Table 25.1 lists the definitions of some commonly used DNS terms.

Table 25.1 Commonly Used DNS Terms

Term Definition

domain The logical entity or organization that represents a part of a network. For example, unc.edu is the name of the primary domain for the University of North Carolina at Chapel Hill.
domain name The name portion of a host name that represents the domain that contains the host. For example, in the address sunsite.unc.edu, the domain name is unc.edu. Also used interchangeably with domain.
host A computer on a network.
node A computer on a network.
name server A computer that provides DNS services to map DNS names to IP addresses.
resolve The act of translating a DNS name into its corresponding IP address.
resolver A program or library routine that extracts DNS information from a name server.
reverse resolution Matching a given IP address to its DNS name. This is also called reverse DNS.
spoof The act of appearing to the network as having a different IP address or domain name.

DNS can be conceptually divided into the following three parts:

  Domain name space. This is a specification for a tree structure that identifies a set of hosts and provides information about them. Conceptually, each node in the tree has a database of information about the hosts under its authority. Queries attempt to extract the appropriate information from this database. In simple terms, this is just the listing of all different types of information, names, IP addresses, mail aliases, and such that are available for lookup in the DNS system.
  Name servers. These are programs that hold and maintain the data located in the domain name space. Each name server has complete information about a subset of the domain name space and cached information about other portions.
A name server has complete information for its area of authority. This authoritative information is divided into areas known as zones, which can be divided among different name servers to provide redundant service for a zone. Each name server knows about other name servers that are responsible for different zones. If a request comes in for information from the zone that a given name server is responsible for, the name server simply returns the information. However, if a request comes in for information from a different zone, the name server contacts the appropriate server with authority for that zone.
  Resolvers. These are simply programs or library routines that extract information from the name servers in response to a query about a host in the domain name space.

Configuring the Resolver

The first step in using DNS is to configure the resolver library on your computer. You must configure your local resolver if you intend to use DNS name resolution, even if you’re not going to run a local domain name server.


Previous Table of Contents Next