Skip to content
This repository has been archived by the owner on Jan 22, 2018. It is now read-only.

Commit

Permalink
BIND - add global settings for named.conf
Browse files Browse the repository at this point in the history
Add field similar to custom options, but for global settings.  Rather than being added to the options{} clause, these settings are added directly to named.conf.

This allows the addition of items such as key{} and server{} clauses.
  • Loading branch information
gogglespisano committed Apr 9, 2015
1 parent a9c38e6 commit 52d9fc6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/bind/bind.inc
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,12 @@ function bind_sync()
$hide_version = $bind['bind_hide_version'];
$bind_notify = $bind['bind_notify'];
$custom_options = base64_decode($bind['bind_custom_options']);
$bind_global_settings = base64_decode($bind['bind_global_settings']);
$bind_logging = $bind['bind_logging'];
$bind_conf = "#Bind pfsense configuration\n";
$bind_conf .= "#Do not edit this file!!!\n\n";
$bind_conf .= "$rndc_bindconf\n";
$bind_conf .= "$bind_global_settings\n";
$bind_conf .= <<<EOD
options {
Expand Down
17 changes: 17 additions & 0 deletions config/bind/bind.xml
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,23 @@
<rows>5</rows>
<encoding>base64</encoding>
</field>
<field>
<type>listtopic</type>
<name>Global Settings</name>
<fieldname>temp01</fieldname>
</field>
<field>
<fielddescr>Global Settings</fielddescr>
<fieldname>bind_global_settings</fieldname>
<description>
<![CDATA[You can put your own global settings here.<br>
They'll be added to the configuration. They need to be named.conf native settings.]]>
</description>
<type>textarea</type>
<cols>65</cols>
<rows>5</rows>
<encoding>base64</encoding>
</field>
</fields>
<custom_php_after_head_command>
</custom_php_after_head_command>
Expand Down

0 comments on commit 52d9fc6

Please sign in to comment.