[an error occurred while processing this directive]

HP OpenVMS Systems Documentation

Content starts here HP TCP/IP Services for OpenVMS

HP TCP/IP Services for OpenVMS
Management


Previous Contents Index

D.3.1.2 Category Phrase

There are many categories, so you can send the logs you want to see anywhere, without seeing logs you do not want. If you do not specify a list of channels for a category, then log messages in that category are sent to the default category instead. If you do not specify a default category, the following "default default" is used:



category default { default_syslog; default_debug; };

For example, if you want to log security events to a file but you also want to keep the default logging behavior, specify the following:



channel my_security_channel {
    file "my_security_file";
    severity info;
};
category security { my_security_channel;
    default_syslog;
    default_debug;
};

To discard all messages in a category, specify the null channel:


category lame-servers { null; };
category cname { null; };

The following categories are available:

default The catch-all. Many things are not categorized, and they end up here. Also, if you do not specify any channels for a category, the default category is used instead. If you do not define the default category, the following definition is used:
category default { default_syslog; default_debug; };

config High-level configuration file processing.
parser Low-level configuration file processing.
queries A short log message is generated for every query the server receives.
lame-servers Messages like "Lame server on ..." .
statistics Statistics.
panic If the server has to shut itself down because of an internal problem, it logs the problem in this category as well as in the problem's native category. If you do not define the panic category, the following definition is used:
category panic { default_syslog; default_stderr; };

update Dynamic updates.
ncache Negative caching.
xfer-in Zone transfers the server is receiving.
xfer-out Zone transfers the server is sending.
db All database operations.
eventlib Debugging information from the event system. Only one channel can be specified for this category, and it must be a file channel. If you do not define the eventlib category, the following definition is used:
category eventlib { default_debug; };

packet Dumps of packets received and sent. Only one channel can be specified for this category, and it must be a file channel. If you do not define the packet category, the following definition is used:
category packet { default_debug; };

notify The NOTIFY protocol.
cname Messages like "... points to a CNAME".
security Approved and unapproved requests.
os Operating system problems.
insist Internal consistency check failures.
maintenance Periodic maintenance events.
load Zone loading messages.
response-checks Messages arising from response checking, such as "Malformed response ...", "wrong ans. name ...", "unrelated additional info ...", "invalid RR type ...", and "bad referral ...".

D.3.2 BIND Configuration Options Statement

The options statement sets up global options to be used by BIND. This statement can appear only once in a configuration file; if more than one occurrence is found, the first occurrence determines the actual options used, and a warning is generated. If there is no options statement, an options block with each option set to its default is used. The options statement has the following syntax:


options {
[ directory path_name; ]
[ named-xfer path_name; ]
[ dump-file path_name; ]
[ pid-file path_name; ]
[ statistics-file path_name; ]
[ auth-nxdomain yes_or_no; ]
[ fake-iquery yes_or_no; ]
[ fetch-glue yes_or_no; ]
[ multiple-cnames yes_or_no; ]
[ notify yes_or_no; ]
[ recursion yes_or_no; ]
[ forward ( only | first ); ]
[ forwarders { [ in_addr ; [ in_addr ; ... ] ] }; ]
[ check-names ( master | slave | response ) ( warn | fail | ignore); ]
[ allow-query { address_match_list }; ]
[ allow-transfer { address_match_list }; ]
[ listen-on [ port ip_port ] { address_match_list }; ]
[ query-source [ address ( ip_addr | * ) ] [ port ( ip_port | * ) ] ; ]
[ max-transfer-time-in number; ]
[ transfer-format ( one-answer | many-answers ); ]
[ transfers-in  number; ]
[ transfers-out number; ]
[ transfers-per-ns number; ]
[ coresize size_spec ; ]
[ datasize size_spec ; ]
[ files size_spec ; ]
[ stacksize size_spec ; ]
[ cleaning-interval number; ]
[ interface-interval number; ]
[ statistics-interval number; ]
[ topology { address_match_list }; ]

};

D.3.2.1 Path Names

Table D-3 lists the path name options.

Table D-3 BIND 8 - Path Name Options
Option Description
directory The working directory of the server specified as an absolute path. Any nonabsolute path names in the configuration file are relative to this directory. The default location for most server output files (such as, TCPIP$BIND_RUN.LOG) is this directory. If you do not specify a directory, the working directory defaults to SYS$SPECIFIC:[TCPIP$BIND]. If you are configuring a BIND failover environment, the working directory is defined by the logical TCPIP$BIND_COMMON.
dump-file The path name of the file the server dumps the database to when it receives a SIGINT signal (TCPIP$BIND_SERVER_CONTROL.EXE dumpdb). If not specified, the default is TCPIP$BIND_SERVER_ZONES_DUMP.DB.
memstatistics-file The path name of the file the server writes memory usage statistics to on exit, if deallocate-on-exit is yes. If not specified, the default is TCPIP$BIND_SERVER_MEMSTATISTICS.LOG.
pid-file The path name of the file in which the server writes its process ID. If not specified, the default is TCPIP$BIND_SERVER.PID. The pid-file is used by programs like TCPIP$BIND_SERVER_CONTROL.EXE that want to send signals to the running name server.
statistics-file The path name of the file the server appends statistics to when it receives a SIGILL signal (TCPIP$BIND_SERVER_CONTROL.EXE stats). If not specified, the default is TCPIP$BIND_SERVER_STATISTICS.LOG.

Example D-1 shows how to specify path name options with the options statement.

Example D-1 BIND 8 - Path Name Options

options {
 directory   "SYS$SPECIFIC:[TCPIP$BIND]";
 dump-file  "TCPIP$BIND_SERVER_ZONES_DUMP.DB";
 memstatistics-file  "TCPIP$BIND_SERVER_MEMSTATISTICS.LOG";
 pid-file  "TCPIP$BIND_SERVER.PID";
 statistics-file  "TCPIP$BIND_SERVER_STATISTICS.LOG"
};

D.3.2.2 Boolean Options

Table D-4 lists the Boolean options.

Table D-4 BIND 8 - Boolean Options
Option Description
auth-nxdomain If yes, then the AA bit is always set on NXDOMAIN responses, even if the server is not actually authoritative. The default is yes. Do not turn off auth-nxdomain unless you are knowledgeable about the option, as some older versions of software may respond unpredictably.
deallocate-on-exit If yes, then when the server exits, it deallocates every object it allocated, and then writes a memory-usage report to the memstatistics-file . The default is no, because it is faster to let the operating system clean up. The deallocate-on-exit option is useful for detecting memory leaks.
fake-iquery If yes, the server simulates the obsolete DNS query type IQUERY. The default is no.
fetch-glue If yes (the default), the server fetches "glue" resource records it does not have when constructing the additional data section of a response. no-fetch-glue can be used with no-recursion to prevent the server's cache from growing or becoming corrupted (at the cost of requiring more work from the client).
host-statistics If yes, then statistics are kept for every host that the name server interacts with. The default is no. Note that turning on host-statistics can consume huge amounts of memory.
multiple-cnames If yes, then multiple CNAME resource records allow for a domain name. The default is no. Allowing multiple CNAME records is against standards and is not recommended. Multiple CNAME support is available because previous versions of BIND allowed multiple CNAME records, and these records have been used for load balancing by a number of sites.
notify If yes (the default), DNS NOTIFY messages are sent when a zone for which the server is authoritative changes. The use of NOTIFY speeds convergence between the master and its slaves. Slave servers that receive a NOTIFY message and understand it contact the master server for the zone to see if they need to do a zone transfer; if they do, the servers initiate the zone transfer immediately. The notify option can also be specified in the zone statement, in which case it overrides the options notify statement.
recursion If yes, and a DNS query requests recursion, then the server attempts to do all the work required to answer the query. If recursion is not on, the server returns a referral to the client if it doesn't know the answer. The default is yes. See also fetch-glue above.

Example D-2 shows how to specify Boolean options in an options statement.

Example D-2 BIND 8 - Boolean Options

options {
 auth-nxdomain  yes;
 deallocate-on-exit no;
 fake-iquery  no;
 fetch-glue  yes;
 host-statistics  no;
 multiple-cnames  no;
 notify   yes;
 recursion  yes;
};

D.3.2.3 Forwarding

You can use the forwarding facility to create a large sitewide cache on a few servers, reducing traffic over links to external name servers. You can also use the forwarding facility to allow queries by servers that do not have direct access to the Internet, but wish to look up exterior names anyway. Forwarding occurs on only those queries for which the server is not authoritative and does not have the answer in its cache. Table D-5 lists the forwarding options.

Table D-5 BIND 8 - Forwarding Options
Option Description
forward This option is meaningful only if the forwarders list is not empty.
first Causes the server to query the forwarders first. If that does not answer the question, the server looks for the answer itself. A ROOT.HINT file must be present. This is the default.
only The server queries only the forwarders. A ROOT.HINT file is not necessary.
forwarders Specifies the IP addresses to be used for forwarding. The default is the empty list (no forwarding).

Example D-3 shows how to specify an options statement to invoke forwarding.

Example D-3 BIND 8 - Forwarding Options

options {
 forwarders {
   1.2.3.4;
   5.6.7.8;
 };
 forward first;
};

D.3.2.4 Name Checking

The server can check domain names based on their expected client contexts. For example, a domain name used as a host name can be checked for compliance with the RFCs defining valid host names. Table D-6 describes the three name-checking methods.

Table D-6 BIND 8 - Name Checking Options
Option Description
ignore No checking is done.
warn Names are checked against their expected client contexts. Invalid names are logged, but processing continues normally.
fail Names are checked against their expected client contexts. Invalid names are logged, and the offending data is rejected.

The server can check names in three areas: master zone files, slave zone files to queries the server has initiated. If check-names response fail has been specified, and answering the client's question would require sending an invalid name to the client, the server sends a REFUSED response code to the client. The defaults are:

  • check-names master fail
  • check-names slave warn
  • check-names response ignore

The check-names option can also be specified in the zone statement, in which case it overrides the options check-names statement. When used in a zone statement, the area is not specified (because it can be deduced from the zone type).

Example D-4 shows how to specify an options statement for name checking. The statement specifies that nonconforming names coming from a slave are ignored.

Example D-4 BIND 8 - Name Checking Options

options  {
          check-names slave ignore;
};

D.3.2.5 Access Control

Access to the server can be restricted based on the IP address of the requesting system. Table D-7 describes the access control options.

Table D-7 BIND 8 - Access Control Options
Option Description
allow-query Specifies which hosts are allowed to ask ordinary questions. The allow-query option can also be specified in the zone statement, in which case it overrides the option allow-query statement. If not specified, the default is to allow queries from all hosts.
allow-transfer Specifies which hosts are allowed to receive zone transfers from the server. The allow-transfer option can also be specified in the zone statement, in which case it overrides the option allow-transfer statement. If not specified, the default is to allow transfers from all hosts.

Example D-5 shows how to specify an options statement to control access to the server.

Example D-5 BIND 8 - Access Control Options

options {
 allow-query { any; } ;
 allow-transfer {
       1.2.3/24;
      5.6.7.8;
 };
};

D.3.2.6 Interfaces

The interfaces and ports from which the server answers queries can be specified using the listen-on option. The listen-on option takes an optional port and an address_match_list . The server listens on all interfaces allowed by the address match list. All queries must be directed to the interface and port number specified on the listen-on statement. If a port is not specified, the server uses port 53.

Multiple listen-on statements are allowed. For example,


    listen-on { 5.6.7.8; };
    listen-on port 1234 { !1.2.3.4; 1.2/16; };

If a listen-on option is not specified, the server listens on port 53 on all interfaces.

D.3.2.7 Query Address

If the server does not know the answer to a question, it queries other name servers. The query-source option specifies the source address and source port used for such queries. If the address is an asterisk (*) or is omitted, the server uses a wildcard IP address (INADDR_ANY). If the port is an asterisk (*) or is omitted, the server uses a random unprivileged port. The default query-source statement is as follows:



    query-source address * port *;

The query-source option currently applies only to UDP queries; TCP queries always use a wildcard IP address and a random unprivileged port.

D.3.2.8 Zone Transfers

Table D-8 describes the zone transfer options.

Table D-8 BIND 8 - Zone Transfer Options
Option Description
max-transfer-time-in Inbound zone transfers (BIND_SERVER_XFER processes) running longer than this many minutes are terminated. The default is 120 minutes (2 hours).
transfer-format The server supports two zone transfer methods. The one-answer method uses one DNS message per resource record transferred. The many-answers method packs as many resource records as possible into a message. The many-answers method is more efficient, but it is understood only by BIND 8.1 and patched versions of BIND 4.9.5. The default is one-answer . The transfer-format option can be overridden on a per-server basis by using the server statement.
transfers-in The maximum number of inbound zone transfers that can be running concurrently. The default value is 10. Increasing transfers-in can speed the convergence of slave zones, but can also increase the load on the local system.
transfers-per-ns The maximum number of inbound zone transfers (BIND_SERVER_XFER processes) that can be concurrently transferring from a given remote name server. The default value is 2. Increasing transfers-per-ns can speed the convergence of slave zones, but it can also increase the load on the remote name server. transfers-per-ns can be overridden on a per-server basis by using the transfers phrase of the server statement.

Example D-6 shows how to specify an options statement to control zone transfers.

Example D-6 BIND 8 - Zone Transfer Options

options {
 max-transfer-time-in 120;
 transfer-format  one-answer;
 transfers-in  10;
 transfers-per-ns 2;
};


Previous Next Contents Index