Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions dns/bind/src/etc/namedb/named-options.conf.d/00-README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Custom BIND Configuration Directory for BIND options
#
# Place your custom BIND options in .conf files in this directory
# Files are included in alphabetical order
#
# Example:
# forwarders port 853 tls Cloudflare-DoT { 1.1.1.2; 1.0.0.2; };
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ public function __construct()

public function collectStatus()
{
if (count(glob('/usr/local/etc/namedb/named.conf.d/*')) > 1) {
if (count(glob('/usr/local/etc/namedb/named.conf.d/*.conf')) > 0
or count(glob('/usr/local/etc/namedb/named-options.conf.d/*.conf')) > 0) {
$this->internalMessage = gettext(
'The configuration contains manual overwrites, these may interfere with the settings configured here.'
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ acl "{{ acl_list.name }}" { {{ acl_list.networks.replace(',', '; ') }}; };
{% endif %}

options {
include "/usr/local/etc/namedb/named-options.conf.d/*.conf";

directory "/usr/local/etc/namedb/working";
pid-file "/var/run/named/pid";
Expand Down