DNS and DHCP updates

This commit is contained in:
Markus 2018-04-22 12:07:42 +02:00
parent 95084d6cc6
commit 7806c6b9e9
4 changed files with 17 additions and 9 deletions

View File

@ -52,6 +52,7 @@ subnet 172.23.1.0 netmask 255.255.255.0 {}
# Services # Services
subnet 172.23.2.0 netmask 255.255.255.0 { subnet 172.23.2.0 netmask 255.255.255.0 {
allow bootp;
option routers 172.23.2.1; option routers 172.23.2.1;
} }
@ -140,6 +141,11 @@ host spiegelei {
fixed-address spiegelei.binary.kitchen; fixed-address spiegelei.binary.kitchen;
} }
host obatzda {
hardware ethernet ec:9a:74:35:35:cf;
fixed-address obatzda.binary.kitchen;
}
# VoIP Phones # VoIP Phones

View File

@ -1,7 +1,7 @@
--- ---
- name: Install powerdns - name: Install powerdns
apt: name={{item}} default_release=jessie-backports state=latest apt: name={{ item }}
with_items: with_items:
- pdns-server - pdns-server
- pdns-recursor - pdns-recursor
@ -10,7 +10,7 @@
file: path=/etc/powerdns/bind/ state=directory file: path=/etc/powerdns/bind/ state=directory
- name: Configure powerdns - name: Configure powerdns
template: src={{item}}.j2 dest=/etc/powerdns/{{item}} template: src={{ item }}.j2 dest=/etc/powerdns/{{ item }}
notify: Restart powerdns notify: Restart powerdns
with_items: with_items:
- pdns.conf - pdns.conf
@ -20,7 +20,7 @@
- bind/binary.kitchen.zone - bind/binary.kitchen.zone
- name: Start the powerdns services - name: Start the powerdns services
service: name={{item}} state=started enabled=yes service: name={{ item }} state=started enabled=yes
with_items: with_items:
- pdns - pdns
- pdns-recursor - pdns-recursor

View File

@ -1,7 +1,7 @@
$ORIGIN 23.172.in-addr.arpa. ; base for unqualified names $ORIGIN 23.172.in-addr.arpa. ; base for unqualified names
$TTL 1h ; default time-to-live $TTL 1h ; default time-to-live
@ IN SOA ns.binary.kitchen. hostmaster.binary.kitchen. ( @ IN SOA ns.binary.kitchen. hostmaster.binary.kitchen. (
2018020301; serial 2018041601; serial
1d; refresh 1d; refresh
2h; retry 2h; retry
4w; expire 4w; expire
@ -42,6 +42,7 @@ $TTL 1h ; default time-to-live
60.2 IN PTR punsch.binary.kitchen. 60.2 IN PTR punsch.binary.kitchen.
62.2 IN PTR bowle.binary.kitchen. 62.2 IN PTR bowle.binary.kitchen.
91.2 IN PTR spiegelei.binary.kitchen. 91.2 IN PTR spiegelei.binary.kitchen.
92.2 IN PTR obatzda.binary.kitchen.
; Clients ; Clients
1.3 IN PTR v2303.core.binary.kitchen. 1.3 IN PTR v2303.core.binary.kitchen.
$GENERATE 10-240 $.3 IN PTR dhcp-${0,3,d}-03.binary.kitchen. $GENERATE 10-240 $.3 IN PTR dhcp-${0,3,d}-03.binary.kitchen.
@ -53,8 +54,8 @@ $GENERATE 10-240 $.3 IN PTR dhcp-${0,3,d}-03.binary.kitchen.
$GENERATE 10-240 $.4 IN PTR dhcp-${0,3,d}-04.binary.kitchen. $GENERATE 10-240 $.4 IN PTR dhcp-${0,3,d}-04.binary.kitchen.
; Management RZ ; Management RZ
23.8 IN PTR cernunnos.binary.kitchen. 23.8 IN PTR cernunnos.binary.kitchen.
61.8 IN PTR ruben.binary.kitchen. 60.8 IN PTR ruben.binary.kitchen.
81.8 IN PTR ruben-bmc.binary.kitchen. 80.8 IN PTR ruben-bmc.binary.kitchen.
254.8 IN PTR switch0.erx-rz.binary.kitchen. 254.8 IN PTR switch0.erx-rz.binary.kitchen.
; VPN RZ ; VPN RZ
1.10 IN PTR vtun0.erx-rz.binary.kitchen. 1.10 IN PTR vtun0.erx-rz.binary.kitchen.

View File

@ -1,7 +1,7 @@
$ORIGIN binary.kitchen ; base for unqualified names $ORIGIN binary.kitchen ; base for unqualified names
$TTL 1h ; default time-to-live $TTL 1h ; default time-to-live
@ IN SOA ns.binary.kitchen. hostmaster.binary.kitchen. ( @ IN SOA ns.binary.kitchen. hostmaster.binary.kitchen. (
2018020301; serial 2018041601; serial
1d; refresh 1d; refresh
2h; retry 2h; retry
4w; expire 4w; expire
@ -56,6 +56,7 @@ cashdesk IN A 172.23.2.44
punsch IN A 172.23.2.60 punsch IN A 172.23.2.60
bowle IN A 172.23.2.62 bowle IN A 172.23.2.62
spiegelei IN A 172.23.2.91 spiegelei IN A 172.23.2.91
obatzda IN A 172.23.2.92
; Clients ; Clients
v2303.core IN A 172.23.3.1 v2303.core IN A 172.23.3.1
$GENERATE 1-240 dhcp-${0,3,d}-03 IN A 172.23.3.$ $GENERATE 1-240 dhcp-${0,3,d}-03 IN A 172.23.3.$
@ -67,8 +68,8 @@ pizza.mqtt IN A 172.23.4.6
$GENERATE 1-240 dhcp-${0,3,d}-04 IN A 172.23.4.$ $GENERATE 1-240 dhcp-${0,3,d}-04 IN A 172.23.4.$
; Management RZ ; Management RZ
cernunnos IN A 172.23.8.23 cernunnos IN A 172.23.8.23
ruben IN A 172.23.8.61 ruben IN A 172.23.8.60
ruben-bmc IN A 172.23.8.81 ruben-bmc IN A 172.23.8.80
switch0.erx-rz IN A 172.23.8.254 switch0.erx-rz IN A 172.23.8.254
; VPN RZ ; VPN RZ
$GENERATE 2-254 vpn-${0,3,d}-10 IN A 172.23.10.$ $GENERATE 2-254 vpn-${0,3,d}-10 IN A 172.23.10.$