From e4b07bc43b428eb905578e9e710e63f8ad535df7 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Sun, 8 Jul 2018 16:38:16 +0200 Subject: [PATCH] dns/dhcp: reserved host mirror --- roles/dhcpd/templates/dhcp/dhcpd.conf.j2 | 5 +++++ roles/dns-intern/templates/bind/23.172.in-addr.arpa.zone.j2 | 3 ++- roles/dns-intern/templates/bind/binary.kitchen.zone.j2 | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/roles/dhcpd/templates/dhcp/dhcpd.conf.j2 b/roles/dhcpd/templates/dhcp/dhcpd.conf.j2 index 9e05cfc..184b601 100644 --- a/roles/dhcpd/templates/dhcp/dhcpd.conf.j2 +++ b/roles/dhcpd/templates/dhcp/dhcpd.conf.j2 @@ -126,6 +126,11 @@ host matrix { fixed-address matrix.binary.kitchen; } +host mirror { + hardware ethernet 74:da:38:7d:ed:84; + fixed-address mirror.binary.kitchen; +} + host pizza { hardware ethernet 52:54:00:17:02:21; fixed-address pizza.binary.kitchen; diff --git a/roles/dns-intern/templates/bind/23.172.in-addr.arpa.zone.j2 b/roles/dns-intern/templates/bind/23.172.in-addr.arpa.zone.j2 index 1f50cce..db252a1 100644 --- a/roles/dns-intern/templates/bind/23.172.in-addr.arpa.zone.j2 +++ b/roles/dns-intern/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. ( - 2018061100; serial + 2018070800; serial 1d; refresh 2h; retry 4w; expire @@ -50,6 +50,7 @@ $GENERATE 10-240 $.3 IN PTR dhcp-${0,3,d}-03.binary.kitchen. 241.3 IN PTR klopi.binary.kitchen. 242.3 IN PTR spaghetti.binary.kitchen. 243.3 IN PTR garlic.binary.kitchen. +244.3 IN PTR mirror.binary.kitchen. ; MQTT 1.4 IN PTR v2304.core.binary.kitchen. 6.4 IN PTR pizza.mqtt.binary.kitchen. diff --git a/roles/dns-intern/templates/bind/binary.kitchen.zone.j2 b/roles/dns-intern/templates/bind/binary.kitchen.zone.j2 index 529b36c..cddafa7 100644 --- a/roles/dns-intern/templates/bind/binary.kitchen.zone.j2 +++ b/roles/dns-intern/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. ( - 2018061300; serial + 2018070800; serial 1d; refresh 2h; retry 4w; expire @@ -65,6 +65,7 @@ $GENERATE 1-240 dhcp-${0,3,d}-03 IN A 172.23.3.$ klopi IN A 172.23.3.241 spaghetti IN A 172.23.3.242 garlic IN A 172.23.3.243 +mirror IN A 172.23.3.244 ; MQTT v2304.core IN A 172.23.4.1 pizza.mqtt IN A 172.23.4.6