Red Hat LINUX 7.2 - OFFICIAL LINUX CUSTOMIZATION GUIDE Guida di Installazione Pagina 228

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 282
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 227
228 Chapter 17. Berkeley Internet Name Domain (BIND)
17.2.2.1. Zone File Directives
Directives are identified by the leading $ character before the name of the directive and usually placed
at the top of the zone file.
The following directives are the most commonly used:
$INCLUDE Tells named to include another zone file in this zone file at the place where the
directive is used. This allows additional zone settings to be stored apart from the main zone file.
$ORIGIN Sets the domain name to be appended to any unqualified records, such as those that
only specify the host and nothing more.
For example, a zone file may contains the following line:
$ORIGIN domain.com
At this point, any names that are used in resource records and do not end in a trailing dot (.) will
have this domain name added to them. So, in other words, when the zone record is read by the
nameserver, the first line below will be interpreted as the second line:
ftp IN CNAME server1
ftp.domain.com. IN CNAME server1.domain.com.
Note
The use of the $ORIGIN directive is unnecessary if you name the zone in /etc/named.conf the
same as the value you would assign to $ORIGIN. The zone’s name is used as the $ORIGIN direc-
tive’s value by default.
$TTL Sets the default Time to Live (TTL) value for the zone. This is the number, in seconds,
given to nameservers that tells how long the zone’s resource records should continue to be valid. A
resource record can contains its own TTL value, which would override this directive.
Increasing this value tells remote nameservers to cache this zone’s information for a longer time.
This reduces the number of queries made concerning this zone, but it also lengthens the amount of
time required to proliferate resource record changes.
17.2.2.2. Zone File Resource Records
Zone file resource records contain columns of data, separated by whitespace, that define the record.
All zone file resource records are assigned a particular type, which designates the record’s purpose.
The following types of resource records are the most commonly used:
A — Address record, which specifies an IP address to assign to a name.
host IN A IP-address
Figure 17-7. Sample A record configuration
If the host value is omitted, then an A record points to a default IP address for the top of the
namespace. This system will be the target of all non-FQDN requests.
Consider the following A record examples for the domain.com zone file:
Vedere la pagina 227
1 2 ... 223 224 225 226 227 228 229 230 231 232 233 ... 281 282

Commenti su questo manuale

Nessun commento

Interní pevné disky příručky

Začínající na O strana

Seznam značek pro kategorii příruček Interní pevné disky
Značky Nejlepší modely
Origin Storage                               DELL-320S/5-NB35 DELL-320S/5-NB32 DELL-73SAS/15-S12 FUJ-250SATA/7-S2 Další kategorie