Allowing debug messages in the server is possible only when configuring the sources. Two configure options are required to do this:
--enable-debug
option specifies the server modules for which you
want to enable debug messages. One or more of the following modules may be
listed, separated by commas:
server
- Messages related to networking, threads and low-level
journal handling.
zones
- All operations with zones - loading, updating, saving,
timers, high-level journal management.
xfr
- AXFR, IXFR and NOTIFY handling.
packet
- Packet parsing and response creation.
dname
- Parsing, comparing and other operations on domain names.
rr
- Details of processed resource records.
ns
- Query processing, high-level handling of all requests
(transfers, NOTIFY, normal queries).
hash
- Details of hash table (the main data structure) operation.
compiler
- Zone file compilation.
--enable-debuglevel
option is used to specify the verbosity of the
debug output. Be careful with this, as the details
verbosity may produce
really large logs (in order of GBs). There are three levels of verbosity:
brief
, verbose
and details
.