Knowledge Base ISC Main Website Ask a Question/Contact ISC
How can I check the default option values in named.conf?
Author: Evan Hunt Reference Number: AA-00704 Views: 140 Created: 2012-06-08 10:30 Last Updated: 2012-06-08 10:30 0 Rating/ Voters

There isn't any command for bind that will list all named.conf options and their default settings, but checking the defaults can sometimes be helpful in understanding why BIND is doing something that you didn't expect it to, particularly if you've recently upgraded.

All the options are documented in the Administrator Reference Manual for the version of BIND that you're running.  The version of the ARM that is specific to the version of BIND that you are running can be found in the source code tarball (~/doc/arm).  In addition, the latest ARM versions for each major release are also directly accessible from the ISC website at: https://www.isc.org/software/bind/documentation

In addition if you download and build source, there's a tool that will print all the supported options (but it doesn't print the default settings):

bin/tests/cfg_test --named --grammar

But, if you've downloaded the source anyway, the defaults for nearly every option are set in ~/bin/named/config.c -- scroll down to where it says
"default configuration" and read from there.  For example:

options {\n\
#       blackhole {none;};\n"
#ifndef WIN32
"       coresize default;\n\
        datasize default;\n\
        files default;\n\
        stacksize default;\n"
#endif
"       deallocate-on-exit true;\n\
#       directory <none>\n\
        dump-file \"named_dump.db\";\n\
        fake-iquery no;\n\
        has-old-clients false;\n\
        heartbeat-interval 60;\n\
        host-statistics no;\n\
        interface-interval 60;\n\
        listen-on {any;};\n\
        listen-on-v6 {none;};\n\
...

~/bin/named/config.c also includes defaults for 'view' and 'zone'.


© 2001-2017 Internet Systems Consortium

For assistance with problems and questions for which you have not been able to find an answer in our Knowledge Base, we recommend searching our community mailing list archives and/or posting your question there (you will need to register there first for your posts to be accepted). The bind-users and the dhcp-users lists particularly have a long-standing and active membership.

ISC relies on the financial support of the community to fund the development of its open source software products. If you would like to support future product evolution and maintenance as well having peace of mind knowing that our team of experts are poised to provide you with individual technical assistance whenever you call upon them, then please consider our Professional Subscription Support services - details can be found on our main website.

Feedback
  • There is no feedback for this article
Quick Jump Menu