Bind 9 Administrator Reference Manual

Chapter 6. BIND 9 Configuration Reference
[ listen-
on { ip_addr [port ip_port] ; [ ip_addr [port ip_port] ; ... ] }; ]
[ view view_name; ]
[ search { domain_name ; [ domain_name ; ... ] }; ]
[ ndots number; ]
};
6.2.12. lwres Statement Definition and Usage
The lwres statement configures the name server to also act as a lightweight resolver server, see Section
5.2. There may be be multiple lwres statements configuring lightweight resolver servers with different
properties.
The listen-on statement specifies a list of addresses (and ports) that this instance of a lightweight
resolver daemon should accept requests on. If no port is specified, port 921 is used. If this statement is
omitted, requests will be accepted on 127.0.0.1, port 921.
The view statement binds this instance of a lightweight resolver daemon to a view in the DNS
namespace, so that the response will be constructed in the same manner as a normal DNS query
matching this view. If this statement is omitted, the default view is used, and if there is no default view,
an error is triggered.
The search statement is equivalent to the search statement in /etc/resolv.conf. It provides a list of
domains which are appended to relative names in queries.
The ndots statement is equivalent to the ndots statement in /etc/resolv.conf. It indicates the
minimum number of dots in a relative domain name that should result in an exact match lookup before
search path elements are appended.
6.2.13. options Statement Grammar
This is the grammar of the options statement in the named.conf file:
options {
[ version version_string; ]
[ directory path_name; ]
[ named-xfer path_name; ]
[ tkey-domain domainname; ]
[ tkey-dhkey key_name key_tag; ]
[ dump-file path_name; ]
[ memstatistics-file path_name; ]
[ pid-file path_name; ]
57