Print the BIND9 default configuration Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Come Celebrate our 10 Year Anniversary!nslookup Failurebind9 configuration problemdefault name server behavior (named.conf configuration; Bind9)Bind9 configuration issuesBIND slave doesn't sync up with master until it is restartedHow to show the host/configured/default ssh “configuration”?Bind9 Change Default Config LocationBind9 Server Default NXDOMAIN ResponseBind 9 - allow-query-on versus listen-onBIND DNS rate-limit: qps-scale understanding
Why does tar appear to skip file contents when output file is /dev/null?
Is there folklore associating late breastfeeding with low intelligence and/or gullibility?
Cold is to Refrigerator as warm is to?
Keep going mode for require-package
3 doors, three guards, one stone
How do you clear the ApexPages.getMessages() collection in a test?
If I can make up priors, why can't I make up posteriors?
How are presidential pardons supposed to be used?
Windows 10: How to Lock (not sleep) laptop on lid close?
Is it possible to ask for a hotel room without minibar/extra services?
Slither Like a Snake
What was the last x86 CPU that did not have the x87 floating-point unit built in?
Why is "Captain Marvel" translated as male in Portugal?
Was credit for the black hole image misattributed?
What is the largest species of polychaete?
Strange behaviour of Check
How to rotate it perfectly?
Array/tabular for long multiplication
What's the point in a preamp?
How do I automatically answer y in bash script?
When communicating altitude with a '9' in it, should it be pronounced "nine hundred" or "niner hundred"?
How should I respond to a player wanting to catch a sword between their hands?
What to do with post with dry rot?
Estimate capacitor parameters
Print the BIND9 default configuration
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Come Celebrate our 10 Year Anniversary!nslookup Failurebind9 configuration problemdefault name server behavior (named.conf configuration; Bind9)Bind9 configuration issuesBIND slave doesn't sync up with master until it is restartedHow to show the host/configured/default ssh “configuration”?Bind9 Change Default Config LocationBind9 Server Default NXDOMAIN ResponseBind 9 - allow-query-on versus listen-onBIND DNS rate-limit: qps-scale understanding
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
Postfix has the command postconf which prints the entire Postfix configuration including its default values (default can also be shown using the -d option).
Samba has a similar command which prints the entire configuration file including its default values: testparm -v.
I'm however unable to find a similar command to print the entire configuration BIND file including its default values. I know I can look up the default values in the BIND9 Configuration Reference (Chapter 6 of the ARM) but this is tedious and the default are not easily spotted when skimming through the web page. Does this option exist for BIND?
bind defaults
add a comment |
Postfix has the command postconf which prints the entire Postfix configuration including its default values (default can also be shown using the -d option).
Samba has a similar command which prints the entire configuration file including its default values: testparm -v.
I'm however unable to find a similar command to print the entire configuration BIND file including its default values. I know I can look up the default values in the BIND9 Configuration Reference (Chapter 6 of the ARM) but this is tedious and the default are not easily spotted when skimming through the web page. Does this option exist for BIND?
bind defaults
add a comment |
Postfix has the command postconf which prints the entire Postfix configuration including its default values (default can also be shown using the -d option).
Samba has a similar command which prints the entire configuration file including its default values: testparm -v.
I'm however unable to find a similar command to print the entire configuration BIND file including its default values. I know I can look up the default values in the BIND9 Configuration Reference (Chapter 6 of the ARM) but this is tedious and the default are not easily spotted when skimming through the web page. Does this option exist for BIND?
bind defaults
Postfix has the command postconf which prints the entire Postfix configuration including its default values (default can also be shown using the -d option).
Samba has a similar command which prints the entire configuration file including its default values: testparm -v.
I'm however unable to find a similar command to print the entire configuration BIND file including its default values. I know I can look up the default values in the BIND9 Configuration Reference (Chapter 6 of the ARM) but this is tedious and the default are not easily spotted when skimming through the web page. Does this option exist for BIND?
bind defaults
bind defaults
asked Apr 23 '17 at 10:47
TomTom
455
455
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
No, there is no tool/option that really does what you want.
named-checkconf -p
prints the full user configuration but does not show the full effective configuration (including defaults).
You can find the default configuration for options
in bin/named/config.c
in the BIND codebase, BUT some configuration parameters are interdependent, where overriding one affects others as well (see eg allow-query
and allow-recursion
), so the effective configuration is not as simple as just overlaying the user configuration on top of the default config without additional logic.
I agree that it would sometimes be useful to have a tool that would print the full effective configuration as named
would use it, but there just isn't any option for that currently.
The best readily available suggestion I can offer is searching for default in your browser before you start reading through the options in the manual to get every instance of this word highlighted, making it easier to spot the default values as you go along.
Excellent answer. Bonus points for referring me to the source code! Thanks!
– Tom
Apr 27 '17 at 20:08
add a comment |
The BIND configuration is little more complex than just a list of option/value pairs that can have default values which are then altered. Configuration can also be split to several files through include
s.
The similar syntax checking tool and the command you are looking for is named-checkconf
:
named-checkconf
checks the syntax, but not the semantics, of anamed
configuration file. The file is parsed and checked for syntax errors,
along with all files included by it. If no file is specified,
/etc/named.conf
is read by default.
Note: files that
named
reads in separate parser contexts, such as
rndc.key
andbind.keys
, are not automatically read bynamed-checkconf
.
Configuration errors in these files may cause named to fail to run,
even ifnamed-checkconf
was successful.named-checkconf
can be run on
these files explicitly, however.
While named-checkconf
reads through named.conf
and the all the configuration files included, another tool, named-checkzone
checks the syntax and integrity of a zone file.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f846055%2fprint-the-bind9-default-configuration%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
No, there is no tool/option that really does what you want.
named-checkconf -p
prints the full user configuration but does not show the full effective configuration (including defaults).
You can find the default configuration for options
in bin/named/config.c
in the BIND codebase, BUT some configuration parameters are interdependent, where overriding one affects others as well (see eg allow-query
and allow-recursion
), so the effective configuration is not as simple as just overlaying the user configuration on top of the default config without additional logic.
I agree that it would sometimes be useful to have a tool that would print the full effective configuration as named
would use it, but there just isn't any option for that currently.
The best readily available suggestion I can offer is searching for default in your browser before you start reading through the options in the manual to get every instance of this word highlighted, making it easier to spot the default values as you go along.
Excellent answer. Bonus points for referring me to the source code! Thanks!
– Tom
Apr 27 '17 at 20:08
add a comment |
No, there is no tool/option that really does what you want.
named-checkconf -p
prints the full user configuration but does not show the full effective configuration (including defaults).
You can find the default configuration for options
in bin/named/config.c
in the BIND codebase, BUT some configuration parameters are interdependent, where overriding one affects others as well (see eg allow-query
and allow-recursion
), so the effective configuration is not as simple as just overlaying the user configuration on top of the default config without additional logic.
I agree that it would sometimes be useful to have a tool that would print the full effective configuration as named
would use it, but there just isn't any option for that currently.
The best readily available suggestion I can offer is searching for default in your browser before you start reading through the options in the manual to get every instance of this word highlighted, making it easier to spot the default values as you go along.
Excellent answer. Bonus points for referring me to the source code! Thanks!
– Tom
Apr 27 '17 at 20:08
add a comment |
No, there is no tool/option that really does what you want.
named-checkconf -p
prints the full user configuration but does not show the full effective configuration (including defaults).
You can find the default configuration for options
in bin/named/config.c
in the BIND codebase, BUT some configuration parameters are interdependent, where overriding one affects others as well (see eg allow-query
and allow-recursion
), so the effective configuration is not as simple as just overlaying the user configuration on top of the default config without additional logic.
I agree that it would sometimes be useful to have a tool that would print the full effective configuration as named
would use it, but there just isn't any option for that currently.
The best readily available suggestion I can offer is searching for default in your browser before you start reading through the options in the manual to get every instance of this word highlighted, making it easier to spot the default values as you go along.
No, there is no tool/option that really does what you want.
named-checkconf -p
prints the full user configuration but does not show the full effective configuration (including defaults).
You can find the default configuration for options
in bin/named/config.c
in the BIND codebase, BUT some configuration parameters are interdependent, where overriding one affects others as well (see eg allow-query
and allow-recursion
), so the effective configuration is not as simple as just overlaying the user configuration on top of the default config without additional logic.
I agree that it would sometimes be useful to have a tool that would print the full effective configuration as named
would use it, but there just isn't any option for that currently.
The best readily available suggestion I can offer is searching for default in your browser before you start reading through the options in the manual to get every instance of this word highlighted, making it easier to spot the default values as you go along.
edited Apr 9 at 19:56
IBBoard
1255
1255
answered Apr 23 '17 at 20:02
Håkan LindqvistHåkan Lindqvist
22.6k43761
22.6k43761
Excellent answer. Bonus points for referring me to the source code! Thanks!
– Tom
Apr 27 '17 at 20:08
add a comment |
Excellent answer. Bonus points for referring me to the source code! Thanks!
– Tom
Apr 27 '17 at 20:08
Excellent answer. Bonus points for referring me to the source code! Thanks!
– Tom
Apr 27 '17 at 20:08
Excellent answer. Bonus points for referring me to the source code! Thanks!
– Tom
Apr 27 '17 at 20:08
add a comment |
The BIND configuration is little more complex than just a list of option/value pairs that can have default values which are then altered. Configuration can also be split to several files through include
s.
The similar syntax checking tool and the command you are looking for is named-checkconf
:
named-checkconf
checks the syntax, but not the semantics, of anamed
configuration file. The file is parsed and checked for syntax errors,
along with all files included by it. If no file is specified,
/etc/named.conf
is read by default.
Note: files that
named
reads in separate parser contexts, such as
rndc.key
andbind.keys
, are not automatically read bynamed-checkconf
.
Configuration errors in these files may cause named to fail to run,
even ifnamed-checkconf
was successful.named-checkconf
can be run on
these files explicitly, however.
While named-checkconf
reads through named.conf
and the all the configuration files included, another tool, named-checkzone
checks the syntax and integrity of a zone file.
add a comment |
The BIND configuration is little more complex than just a list of option/value pairs that can have default values which are then altered. Configuration can also be split to several files through include
s.
The similar syntax checking tool and the command you are looking for is named-checkconf
:
named-checkconf
checks the syntax, but not the semantics, of anamed
configuration file. The file is parsed and checked for syntax errors,
along with all files included by it. If no file is specified,
/etc/named.conf
is read by default.
Note: files that
named
reads in separate parser contexts, such as
rndc.key
andbind.keys
, are not automatically read bynamed-checkconf
.
Configuration errors in these files may cause named to fail to run,
even ifnamed-checkconf
was successful.named-checkconf
can be run on
these files explicitly, however.
While named-checkconf
reads through named.conf
and the all the configuration files included, another tool, named-checkzone
checks the syntax and integrity of a zone file.
add a comment |
The BIND configuration is little more complex than just a list of option/value pairs that can have default values which are then altered. Configuration can also be split to several files through include
s.
The similar syntax checking tool and the command you are looking for is named-checkconf
:
named-checkconf
checks the syntax, but not the semantics, of anamed
configuration file. The file is parsed and checked for syntax errors,
along with all files included by it. If no file is specified,
/etc/named.conf
is read by default.
Note: files that
named
reads in separate parser contexts, such as
rndc.key
andbind.keys
, are not automatically read bynamed-checkconf
.
Configuration errors in these files may cause named to fail to run,
even ifnamed-checkconf
was successful.named-checkconf
can be run on
these files explicitly, however.
While named-checkconf
reads through named.conf
and the all the configuration files included, another tool, named-checkzone
checks the syntax and integrity of a zone file.
The BIND configuration is little more complex than just a list of option/value pairs that can have default values which are then altered. Configuration can also be split to several files through include
s.
The similar syntax checking tool and the command you are looking for is named-checkconf
:
named-checkconf
checks the syntax, but not the semantics, of anamed
configuration file. The file is parsed and checked for syntax errors,
along with all files included by it. If no file is specified,
/etc/named.conf
is read by default.
Note: files that
named
reads in separate parser contexts, such as
rndc.key
andbind.keys
, are not automatically read bynamed-checkconf
.
Configuration errors in these files may cause named to fail to run,
even ifnamed-checkconf
was successful.named-checkconf
can be run on
these files explicitly, however.
While named-checkconf
reads through named.conf
and the all the configuration files included, another tool, named-checkzone
checks the syntax and integrity of a zone file.
answered Apr 23 '17 at 16:36
Esa JokinenEsa Jokinen
23.8k23359
23.8k23359
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f846055%2fprint-the-bind9-default-configuration%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown