Skip to content

Commit c0bdeca

Browse files
committed
max-udp-size
1 parent 5110d38 commit c0bdeca

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

manifests/config/params.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
$response_policy_zones = []
5959
$forward_policy = undef
6060
$listen_on_port = undef
61+
$max_udp_size = undef
6162
$transfers = []
6263
$allow_recursion = []
6364
$allow_query = []

manifests/init.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
Array[String] $allow_recursion = $dns::config::params::allow_recursion,
2626
Array[String] $allow_query = $dns::config::params::allow_query,
2727

28-
Optional[Integer] $max_udp_size = undef,
28+
Optional[Integer] $max_udp_size = $dns::config::params::max_udp_size,
2929

3030
Optional[String] $zone_notify = $dns::config::params::zone_notify,
3131
Optional[Array[String]] $also_notify = $dns::config::params::also_notify,

templates/named.conf.options.erb

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ options {
7575
<% if @listen_on_port -%>
7676
port <%= @listen_on_port %>;
7777

78+
<% end -%>
79+
<% if @max_udp_size -%>
80+
max-udp-size <%= @max_udp_size %>;
81+
7882
<% end -%>
7983
<% unless @allow_recursion.empty? -%>
8084
allow-recursion {
@@ -165,11 +169,6 @@ controls {
165169
inet <%= @control_channel_ip %> port <%= @control_channel_port %><% if @control_channel_allow -%> allow { <%= @control_channel_allow.join('; ') %>; }<% end -%>;
166170
};
167171
<% end -%>
168-
169-
<% if @udp_max_size -%>
170-
udp-max-size <%= @udp_max_size %>;
171-
172-
<% end -%>
173172
<% if @query_log_enable -%>
174173
logging {
175174

0 commit comments

Comments
 (0)