Skip to content
This repository was archived by the owner on Aug 29, 2018. It is now read-only.

Commit ed8fb54

Browse files
committed
allow recursion to be selectable for dns server
1 parent e215acc commit ed8fb54

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

manifests/init.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,7 @@
876876
$conf_node_custom_motd = undef,
877877
$development_mode = false,
878878
$conf_nameserver_upstream_dns = ['8.8.8.8'],
879+
$conf_nameserver_allow_recursion = false,
879880
$install_login_shell = false,
880881
$register_host_with_nameserver = false,
881882
$update_network_conf_files = true,

templates/named/named.conf.erb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ options {
1414
statistics-file "/var/named/data/named_stats.txt";
1515
memstatistics-file "/var/named/data/named_mem_stats.txt";
1616
allow-query { any; };
17+
<% if scope.lookupvar('::openshift_origin::conf_nameserver_allow_recursion')-%>
18+
recursion yes;
19+
<% else -%>
1720
recursion no;
21+
<% end -%>
1822

1923
/* Path to ISC DLV key */
2024
bindkeys-file "/etc/named.iscdlv.key";

0 commit comments

Comments
 (0)