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
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,14 @@
<type>dropdown</type>
<help>Default is "No". Set to "Auto" to use the static trust anchor configuration by the system.</help>
</field>
<field>
<id>general.validate_except</id>
<label>DNSSEC Validate Except</label>
<type>select_multiple</type>
<style>tokenize</style>
<allownew>true</allownew>
<help>Specify a list of domain names at and beneath which DNSSEC validation should not be performed (essential for internal split DNS zones in forward zones).</help>
</field>
<field>
<id>general.hidehostname</id>
<label>Hide Hostname</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,13 @@
<Default>no</Default>
<Required>Y</Required>
</dnssecvalidation>
<validate_except type="HostnameField">
<Required>N</Required>
<AsList>Y</AsList>
<IsDNSName>Y</IsDNSName>
<IpAllowed>N</IpAllowed>
<ValidationMessage>[%s] is not a valid domain name.</ValidationMessage>
</validate_except>
<hidehostname type="BooleanField">
<Default>0</Default>
<Required>Y</Required>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ options {
{% if helpers.exists('OPNsense.bind.general.dnssecvalidation') and OPNsense.bind.general.dnssecvalidation != '' %}
dnssec-validation {{ OPNsense.bind.general.dnssecvalidation }};
{% endif %}
{% if helpers.exists('OPNsense.bind.general.validate_except') and OPNsense.bind.general.validate_except != '' %}
validate-except {
{% for domain in OPNsense.bind.general.validate_except.split(',') %}
"{{ domain }}";
{% endfor %}
};
{% endif %}
{% if helpers.exists('OPNsense.bind.general.hidehostname') and OPNsense.bind.general.hidehostname == '1' %}
hostname none;
{% endif %}
Expand Down