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

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 282
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 222
Chapter 17. Berkeley Internet Name Domain (BIND) 223
Warning
Do not manually edit the /etc/named.conf file or any files in the /var/named/ directory if you are
using the BIND Configuration Tool. Any manual changes to those files will be overwritten the next
time the BIND Configuration Tool is used.
The /etc/named.conf file must be free of errors in order for named to start. While some erroneous
options used in with some statements are not considered critical enough to stop the server, any errors
in the statements themselves will prevent the named service from starting.
17.2.1. /etc/named.conf
The /etc/named.conf file is a collection of statements using nested options placed in ellipses { }.
A sample /etc/named.conf file is organized similar to Figure 17-2.
statement-1 [" statement-1-name "] [ statement-1-class ] {
option-1 ;
option-2 ;
option-N ;
};
statement-2 [" statement-2-name "] [ statement-2-class ] {
option-1 ;
option-2 ;
option-N ;
};
statement-N [" statement-N-name "] [ statement-N-class ] {
option-1 ;
option-2 ;
option-N ;
};
Figure 17-2. Sample organization of /etc/named.conf
The " statement-name " is only needed with acl, include, server, view, and zone state-
ments. The
statement-N-class may only be specified with the zone statement.
Comments may be placed in /etc/named in nested C-style characters /* */ or after // and #
characters.
The following statements may be used in /etc/named.conf:
acl
acl-name Configures an access control list of IP addresses to be allowed or disallowed
certain named services. Most of the time, individual IP addresses or IP network notation (such as
10.0.1.0/24) is used identify the exact IPs.
A few access control lists are already defined, so you do not have to configure an acl statement to
define them:
any — Matches every IP address.
localhost Matches any IP address in use by the local system.
localnets Matches any IP address on any network to which the local system is connected .
none — Matches no IP addresses.
Vedere la pagina 222
1 2 ... 218 219 220 221 222 223 224 225 226 227 228 ... 281 282

Commenti su questo manuale

Nessun commento