![]() |
![]() |
| |||
|
A hosts file usually contains these elements:
The hosts.rev FileThe hosts.rev file specifies a zone in the in-addr.arpa. domain, the special domain that allows reverse (address-to-name) mapping. The name of this file is specified in the configuration file. Setting Up the hosts.rev FileThe hosts.rev file sets up inverse mapping. Note - The name hosts.rev is a generic name indicating the file's purpose and content. If you have more than one zone, each zone must have its own hosts.rev file and each of these zone hosts.rev files must have a unique name. For example, if your DNS domain is divided into doc.com and sales.doc.com zones, you could name one hosts.rev file doc.rev and the other sales.rev. Example 5-17 Sample hosts.rev File
A hosts.rev file contains the following elements.
(See Resource Record Types for detailed descriptions of these resource record types.) The named.local FileThe named.local file specifies the address for the local loopback interface, or localhost, with the network address 127.0.0.1. The name of this file is specified in the configuration file. Like other files, you can give it a name other than the name used in this manual. Setting Up the named.local FileThe named.local file sets up the local loopback interface for your name server. Example 5-18 Sample named.local File
A named.local file contains these elements:
The $INCLUDE FileAn include file is any file named in an $INCLUDE() statement in a DNS data file. $INCLUDE files can be used to separate different types of data into multiple files for your convenience. For example, suppose a data file contained following line:
This line causes the /etc/named/data/mailboxes file to be loaded at that point. In this instance, /etc/named/data/mailboxes is an $INCLUDE file. Use of $INCLUDE files is optional. You can use as many as you wish, or none at all. | |||
| |||