forked from redhat-cop/ocp4-helpernode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
reverse.j2
32 lines (31 loc) · 1.15 KB
/
reverse.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
$TTL 1W
@ IN SOA ns1.{{ dns.clusterid }}.{{ dns.domain | lower }}. root (
{{ serialnumber }} ; serial
3H ; refresh (3 hours)
30M ; retry (30 minutes)
2W ; expiry (2 weeks)
1W ) ; minimum (1 week)
IN NS ns1.{{ dns.clusterid }}.{{ dns.domain | lower }}.
;
; syntax is "last octet" and the host must have fqdn with trailing dot
1 IN PTR helper.{{ dns.clusterid }}.{{ dns.domain }}.
{% for m in masters %}
{{ m.ipaddr.split('.')[3] }} IN PTR {{ m.name | lower }}.{{ dns.clusterid }}.{{ dns.domain | lower }}.
{% endfor %}
;
{{ bootstrap.ipaddr.split('.')[3] }} IN PTR {{ bootstrap.name | lower }}.{{ dns.clusterid }}.{{ dns.domain | lower }}.
;
{{ helper.ipaddr.split('.')[3] }} IN PTR api.{{ dns.clusterid }}.{{ dns.domain | lower }}.
{{ helper.ipaddr.split('.')[3] }} IN PTR api-int.{{ dns.clusterid }}.{{ dns.domain | lower }}.
;
{% for w in workers %}
{{ w.ipaddr.split('.')[3] }} IN PTR {{ w.name | lower }}.{{ dns.clusterid }}.{{ dns.domain | lower }}.
{% endfor %}
;
{% if other is defined %}
{% for o in other %}
{{ o.ipaddr.split('.')[3] }} IN PTR {{ o.name }}.{{ dns.clusterid }}.{{ dns.domain }}.
{% endfor %}
;
{% endif %}
;EOF