summaryrefslogtreecommitdiffstats
path: root/roles/dns/templates/named.conf
blob: 22c1ff935238fd13acfb082bb9f05f330e51ded0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
options
{
    directory "/var/named";

    allow-query { {{ ansible_default_ipv4.network }}/24; };

    recursion yes;

{% if dns_forwarders is defined %}
    forwarders {
        {% for dns in dns_forwarders %}
        {{ dns }};
        {% endfor %}
    };
{% endif %}
};
{% for zone in dns_zones %}

zone "{{ zone }}" IN {
    type master;
    file "openshift-cluster.zone";
};
{% endfor %}