From 9e77e2cc4b7e1acb87efbb9fe092e4e9344c25bc Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Tue, 21 Feb 2017 18:46:47 +0100 Subject: [PATCH] Add VPN IPs to DNS. --- roles/dns/templates/bind/23.172.in-addr.arpa.zone.j2 | 8 ++++++-- roles/dns/templates/bind/binary.kitchen.zone.j2 | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/roles/dns/templates/bind/23.172.in-addr.arpa.zone.j2 b/roles/dns/templates/bind/23.172.in-addr.arpa.zone.j2 index c890948..88dff41 100644 --- a/roles/dns/templates/bind/23.172.in-addr.arpa.zone.j2 +++ b/roles/dns/templates/bind/23.172.in-addr.arpa.zone.j2 @@ -1,7 +1,7 @@ $ORIGIN 23.172.in-addr.arpa. ; base for unqualified names $TTL 1h ; default time-to-live @ IN SOA ns.binary.kitchen. hostmaster.binary.kitchen. ( - 2017020901; serial + 2017021801; serial 1d; refresh 2h; retry 4w; expire @@ -45,8 +45,12 @@ $GENERATE 10-240 $.4 IN PTR dhcp-${0,3,d}-04.binary.kitchen. 1.10 IN PTR vtun0.erx-rz.binary.kitchen. $GENERATE 2-254 $.10 IN PTR vpn-${0,3,d}-10.binary.kitchen. ; Point-to-Point -1.96 IN PTR v4000.rtr1.binary.kitchen. +1.96 IN PTR v400.rtr1.binary.kitchen. 2.96 IN PTR gi-1-0-48.core.binary.kitchen. +5.96 IN PTR v401.rtr1.binary.kitchen. +6.96 IN PTR eth0.erx-bk.binary.kitchen. +1.97 IN PTR vtun1.erx-rz.binary.kitchen. +2.97 IN PTR vtun1.erx-bk.binary.kitchen. ; Loopback 1.99 IN PTR core.binary.kitchen. 2.99 IN PTR rtr1.binary.kitchen. diff --git a/roles/dns/templates/bind/binary.kitchen.zone.j2 b/roles/dns/templates/bind/binary.kitchen.zone.j2 index 31532ab..10a8cc0 100644 --- a/roles/dns/templates/bind/binary.kitchen.zone.j2 +++ b/roles/dns/templates/bind/binary.kitchen.zone.j2 @@ -1,7 +1,7 @@ $ORIGIN binary.kitchen ; base for unqualified names $TTL 1h ; default time-to-live @ IN SOA ns.binary.kitchen. hostmaster.binary.kitchen. ( - 2017020901; serial + 2017021801; serial 1d; refresh 2h; retry 4w; expire @@ -58,8 +58,12 @@ switch0.erx-rz IN A 172.23.8.254 ; VPN RZ $GENERATE 2-254 vpn-${0,3,d}-10 IN A 172.23.10.$ ; Point-to-Point -v4000.rtr1 IN A 172.23.96.1 +v400.rtr1 IN A 172.23.96.1 gi-1-0-48.core IN A 172.23.96.2 +v401.rtr1 IN A 172.23.96.5 +eth0.erx-bk IN A 172.23.96.6 +vtun1.erx-rz IN A 172.23.97.1 +vtun1.erx-bk IN A 172.23.97.2 ; Loopback core IN A 172.23.99.1 rtr1 IN A 172.23.99.2