diff --git a/roles/network/templates/etc/bind/db.reverse.j2 b/roles/network/templates/etc/bind/db.reverse.j2 index 991aca5..2f13d12 100644 --- a/roles/network/templates/etc/bind/db.reverse.j2 +++ b/roles/network/templates/etc/bind/db.reverse.j2 @@ -1,15 +1,15 @@ $TTL 86400 -$ORIGIN {{ network.network_name }}. -@ IN SOA {{ network.network_name }}. dns.{{ network.network_name }}. ( - {{ serial }}; - 604800; - 86400; - 2419200; - 86400; +$ORIGIN {{ network.network_reverse }}.IN-ADDR.ARPA. +@ IN SOA {{ network.network_name }}. dns.{{ network.network_name }}. ( + {{ serial }} ; serial number + 604800 ; refresh + 86400 ; update retry + 2419200 ; expiry + 86400 ; Negative caching TTL ) -{{ network.network_reverse }} IN A dns.{{ network.network_name }} +@ IN NS dns.{{ network.network_name }}. {% for host in network.hosts %} -{{ host.ip }} IN PTR {{ host.name }} +{{ host.ip }} IN PTR {{ host.name }}.{{ network.network_name }}. {% endfor %} \ No newline at end of file diff --git a/roles/network/vars/main.yml b/roles/network/vars/main.yml index a9bc790..92119be 100644 --- a/roles/network/vars/main.yml +++ b/roles/network/vars/main.yml @@ -65,13 +65,15 @@ lan: - name: node-03 ip: 103 mac: dc:a6:32:3c:1a:ec - - name: node-04 + - name: pi-kvm ip: 104 mac: dc:a6:32:8b:7b:ab - name: node-05 ip: 105 mac: 08:d4:0c:cc:ff:1f - + - name: uatu + ip: 106 + mac: b8:27:eb:19:f8:0d iot: network_prefix: 192.168.60 network_reverse: 60.168.192