Add secondary DNS/DHCP.

This commit is contained in:
Markus 2017-01-23 18:47:24 +01:00
parent df240d2652
commit 46889c110b
4 changed files with 12 additions and 18 deletions

1
hosts
View File

@ -1,5 +1,6 @@
[kitchen] [kitchen]
bacon.binary.kitchen bacon.binary.kitchen
aveta.binary.kitchen
sulis.binary.kitchen sulis.binary.kitchen
nabia.binary.kitchen nabia.binary.kitchen
[fan-rz] [fan-rz]

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. (
2017011601; serial 2017012301; serial
1d; refresh 1d; refresh
2h; retry 2h; retry
4w; expire 4w; expire
@ -18,7 +18,7 @@ $TTL 1h ; default time-to-live
; Services ; Services
1.2 IN PTR aveta.binary.kitchen. 1.2 IN PTR aveta.binary.kitchen.
3.2 IN PTR bacon.binary.kitchen. 3.2 IN PTR bacon.binary.kitchen.
4.2 IN PTR sulis.binary.kitchen. 5.2 IN PTR sulis.binary.kitchen.
6.2 IN PTR nabia.binary.kitchen. 6.2 IN PTR nabia.binary.kitchen.
7.2 IN PTR taranis.binary.kitchen. 7.2 IN PTR taranis.binary.kitchen.
11.2 IN PTR homer.binary.kitchen. 11.2 IN PTR homer.binary.kitchen.
@ -30,10 +30,10 @@ $TTL 1h ; default time-to-live
91.2 IN PTR spiegelei.binary.kitchen. 91.2 IN PTR spiegelei.binary.kitchen.
254.2 IN PTR v2302.core.binary.kitchen. 254.2 IN PTR v2302.core.binary.kitchen.
; Members ; Members
$GENERATE 1-240 $.3 IN PTR dhcp-${0,3,d}-03.binary.kitchen. $GENERATE 10-240 $.3 IN PTR dhcp-${0,3,d}-03.binary.kitchen.
254.3 IN PTR v2303.core.binary.kitchen. 254.3 IN PTR v2303.core.binary.kitchen.
; Guests ; Guests
$GENERATE 1-240 $.4 IN PTR dhcp-${0,3,d}-04.binary.kitchen. $GENERATE 10-240 $.4 IN PTR dhcp-${0,3,d}-04.binary.kitchen.
254.4 IN PTR v2304.core.binary.kitchen. 254.4 IN PTR v2304.core.binary.kitchen.
; Management RZ ; Management RZ
23.8 IN PTR cernunnos.binary.kitchen. 23.8 IN PTR cernunnos.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. (
2017011601; serial 2017012301; serial
1d; refresh 1d; refresh
2h; retry 2h; retry
4w; expire 4w; expire
@ -11,18 +11,11 @@ $TTL 1h ; default time-to-live
; External ; External
IN A 213.166.246.4 IN A 213.166.246.4
www IN A 213.166.246.4 www IN A 213.166.246.4
; Freifunk
xsffr1 IN A 10.90.224.11
xsffr2 IN A 10.90.224.12
xsffr1-bmc IN A 10.90.224.21
xsffr2-bmc IN A 10.90.224.22
confluence IN A 185.53.218.134
; Aliases ; Aliases
ldap IN A 172.23.2.1 ldap IN A 172.23.2.1
ldap IN A 172.23.2.2
ldap IN A 213.166.246.2 ldap IN A 213.166.246.2
ldap1 IN A 172.23.2.1 ldap1 IN A 172.23.2.1
ldap2 IN A 172.23.2.2 ldap2 IN A 213.166.246.2
ldapm IN A 213.166.246.2 ldapm IN A 213.166.246.2
librenms IN A 172.23.2.6 librenms IN A 172.23.2.6
racktables IN A 172.23.2.6 racktables IN A 172.23.2.6
@ -36,7 +29,7 @@ v2301.core IN A 172.23.1.254
; Services ; Services
aveta IN A 172.23.2.1 aveta IN A 172.23.2.1
bacon IN A 172.23.2.3 bacon IN A 172.23.2.3
sulis IN A 172.23.2.4 sulis IN A 172.23.2.5
nabia IN A 172.23.2.6 nabia IN A 172.23.2.6
taranis IN A 172.23.2.7 taranis IN A 172.23.2.7
homer IN A 172.23.2.11 homer IN A 172.23.2.11
@ -48,10 +41,10 @@ punsch IN A 172.23.2.60
spiegelei IN A 172.23.2.91 spiegelei IN A 172.23.2.91
v2302.core IN A 172.23.2.254 v2302.core IN A 172.23.2.254
; Members ; Members
$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.$
v2303.core IN A 172.23.3.254 v2303.core IN A 172.23.3.254
; Guests ; Guests
$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.$
v2304.core IN A 172.23.4.254 v2304.core IN A 172.23.4.254
; Management RZ ; Management RZ
cernunnos IN A 172.23.8.23 cernunnos IN A 172.23.8.23
@ -59,7 +52,7 @@ ruben IN A 172.23.8.61
ruben-bmc IN A 172.23.8.81 ruben-bmc IN A 172.23.8.81
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.$
; Point-to-Point ; Point-to-Point
v4000.rtr1 IN A 172.23.96.1 v4000.rtr1 IN A 172.23.96.1
gi-1-0-48.core IN A 172.23.96.2 gi-1-0-48.core IN A 172.23.96.2

View File

@ -7,7 +7,7 @@
- ntp - ntp
- name: Setup BK infrastructure server - name: Setup BK infrastructure server
hosts: bacon.binary.kitchen hosts: [bacon.binary.kitchen, aveta.binary.kitchen]
roles: roles:
- dns - dns
- dhcpd - dhcpd