mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
dns/bind: add checkbox to disable prefetching (#1635)
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
PLUGIN_NAME= bind
|
||||
PLUGIN_VERSION= 1.11
|
||||
PLUGIN_VERSION= 1.12
|
||||
PLUGIN_COMMENT= BIND domain name service
|
||||
PLUGIN_DEPENDS= bind914
|
||||
PLUGIN_MAINTAINER= m.muenz@gmail.com
|
||||
|
||||
@@ -8,6 +8,10 @@ necessary for asking and answering name service questions.
|
||||
Plugin Changelog
|
||||
================
|
||||
|
||||
1.12
|
||||
|
||||
* Add checkbox to disable prefetch option
|
||||
|
||||
1.11
|
||||
|
||||
* Remove lame-server log flooding
|
||||
|
||||
@@ -79,6 +79,13 @@
|
||||
<advanced>true</advanced>
|
||||
<help>This will hide the local BIND version in DNS queries.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>general.disableprefetch</id>
|
||||
<label>Disable Prefetching</label>
|
||||
<type>checkbox</type>
|
||||
<advanced>true</advanced>
|
||||
<help>This will disable prefetching of domains before they time out.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>general.enableratelimiting</id>
|
||||
<label>Enable Rate Limiting</label>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<model>
|
||||
<mount>//OPNsense/bind/general</mount>
|
||||
<description>BIND configuration</description>
|
||||
<version>1.0.6</version>
|
||||
<version>1.0.7</version>
|
||||
<items>
|
||||
<enabled type="BooleanField">
|
||||
<default>0</default>
|
||||
@@ -79,6 +79,10 @@
|
||||
<default>0</default>
|
||||
<Required>Y</Required>
|
||||
</hideversion>
|
||||
<disableprefetch type="BooleanField">
|
||||
<default>0</default>
|
||||
<Required>Y</Required>
|
||||
</disableprefetch>
|
||||
<enableratelimiting type="BooleanField">
|
||||
<default>0</default>
|
||||
<Required>Y</Required>
|
||||
|
||||
@@ -50,6 +50,9 @@ options {
|
||||
{% if helpers.exists('OPNsense.bind.general.hideversion') and OPNsense.bind.general.hideversion == '1' %}
|
||||
version none;
|
||||
{% endif %}
|
||||
{% if helpers.exists('OPNsense.bind.general.disableprefetch') and OPNsense.bind.general.disableprefetch == '1' %}
|
||||
prefetch 0;
|
||||
{% endif %}
|
||||
{% if helpers.exists('OPNsense.bind.general.enableratelimiting') and OPNsense.bind.general.enableratelimiting == '1' %}
|
||||
{% if helpers.exists('OPNsense.bind.general.ratelimitcount') and OPNsense.bind.general.ratelimitcount != '' %}
|
||||
rate-limit {
|
||||
|
||||
Reference in New Issue
Block a user