Commit f1b182ca authored by hark's avatar hark

should work now

parent 02c98ab5
......@@ -6,22 +6,55 @@
#
# copy all 020 reverse zones
#
#make_zone hostfile.amsw amsw.020 10.205.252:255.255.255.0
#make_zone hostfile.routers routers.020 10.205.253:255.255.255.0
#make_zone hostfile.transfernet transfernet.020 10.205.254:255.255.255.0
#make_zone hostfile.radio radio.020 10.205.255:255.255.255.0
#
#gitzones
scp $HFD/gitzones.conf root@trashbat:/etc/bind/zones/
scp $HFD/gitzones.conf root@stanleyH:/etc/bind/zones/
scp $HFD/gitzones.conf root@atc:/etc/bind/zones/
#tinc tunnel
cd $OUT/amsw.020
scp db.10.205.252 db.amsw root@atc:/etc/bind/zones/
scp db.10.205.252 db.amsw root@stanleyH:/etc/bind/zones/
cd $OUT
#routers
cd $OUT/routers.020
scp db.10.205.253 db.routers root@atc:/etc/bind/zones/
scp db.10.205.253 db.routers root@stanleyH:/etc/bind/zones/
cd $OUT
#transfernet
cd $OUT/transfernet.020
scp db.10.205.255 db.transfernet root@atc:/etc/bind/zones/
scp db.10.205.255 db.transfernet root@stanleyH:/etc/bind/zones/
cd $OUT
#radio
#cd $OUT/radio.020
#scp db.10.205.255 db.radio root@atc:/etc/bind/zones/
#scp db.10.205.255 db.radio root@stanleyH:/etc/bind/zones/
#cd $OUT
# ki zone
#
echo "copying ki zone: "
cd $OUT/ki.squesh.net
scp db.10.205.14 db.ki $HFD/gitzones.conf root@trashbat:/etc/bind/zones/
scp db.10.205.14 db.ki root@trashbat:/etc/bind/zones/
cd $OUT
cd $OUT/ki.020
scp db.10.205.14 db.ki root@trashbat:/etc/bind/zones/
cd $OUT
cd $OUT/ki.020
scp db.10.205.14 db.ki $HFD/gitzones.conf root@trashbat:/etc/bind/zones/
scp db.10.205.14 db.ki root@stanleyH:/etc/bind/zones/
cd $OUT
cd $OUT/ki.020
scp db.10.205.14 db.ki $HFD/gitzones.conf root@atc:/etc/bind/zones/
scp db.10.205.14 db.ki root@atc:/etc/bind/zones/
cd $OUT
......
......@@ -3,6 +3,47 @@
#make_zone hostfile.transfernet transfernet.020 10.205.254
#make_zone hostfile.radio radio.020 10.205.255
#tinc tunnel
zone "amsw.020" in {
type master;
file "/etc/bind/zones/db.amsw";
};
zone "252.205.10.IN-ADDR.ARPA" in {
type master;
file "/etc/bind/zones/db.10.205.252";
};
#routers
zone "routers.020" in {
type master;
file "/etc/bind/zones/db.routers";
};
zone "253.205.10.IN-ADDR.ARPA" in {
type master;
file "/etc/bind/zones/db.10.205.253";
};
#transfernet
zone "transfernet.020" in {
type master;
file "/etc/bind/zones/db.transfernet";
};
zone "255.205.10.IN-ADDR.ARPA" in {
type master;
file "/etc/bind/zones/db.10.205.255";
};
#radio
#zone "radio.020" in {
# type master;
# file "/etc/bind/zones/db.radio";
#};
#zone "255.205.10.IN-ADDR.ARPA" in {
# type master;
# file "/etc/bind/zones/db.10.205.255";
#};
zone "irl.020" in {
type master;
......@@ -12,7 +53,7 @@ zone "irl.020" in {
zone "12.205.10.IN-ADDR.ARPA" in {
type master;
file "/etc/bind/zones/db.12.205.14";
file "/etc/bind/zones/db.10.205.12";
};
zone "ki.020" in {
......
#amsw tinc tunnel
#
# 10.205.252.0/24
99.99.99.99 test
10.205.252.1 stanleyH
10.205.252.2 trashbat
10.205.252.3 y
10.205.252.4 puscii
10.205.252.5 duja
10.205.252.6 gestire
10.205.252.7 wurlitzer
10.205.252.8 tristor
10.205.252.9 kalium
......@@ -5,6 +5,7 @@
# server subnet: 10.205.12.0/24
# vm address range 10.205.12.50/24 - 10.205.12.200/24
#
99.99.99.99 test
172.16.17.1 router # uplink router, accesspoint (tplink)
172.16.17.2 interference-mainswitch #the main switch
......
#
# amsw routers (loopback addressess)
#
99.99.99.99 test
10.205.253.1 stanleyh
10.205.253.2 duja
10.205.253.3 trashbat
10.205.253.4 y
10.205.253.5 atc
10.205.253.6 ns0.adm
10.205.253.7 nieuwlandrouter
10.205.253.8 tristor
10.205.253.9 kalium
99.99.99.99 test
#nieuwvennep 10.205.255.0/29
10.205.255.1 stanleyh-nieuwvennep
#wg
10.205.255.9 stanleyh-acta-wgterrein
10.205.255.10 radio-acta-acta-wgterrein
10.205.255.11 unknown-acta-wgterrein
10.205.255.12 kalium-acta-wgterrein
10.205.255.13 duja-wgterrein-acta
#east 10.205.255.16/29
10.205.255.17 stanley-acta-east
10.205.255.18 radio-acta-acta-east
10.205.255.19 kalium-acta-east
10.205.255.20 nothing
10.205.255.21 nothing
10.205.255.22 nothing
#adm
10.205.255.25 stanleyh-acta-adm
10.205.255.26 radio-acta-acta-adm
10.205.255.27 something
10.205.255.28 kalium-acta-adm
10.205.255.29 nothing
10.205.255.30 something
#wireless belgium
10.205.255.33 stanleyh-acta-antwerp
10.205.255.34 kalium-acta-antwerp
#techinc
#10.205.255.48/29 dev eth1.10 proto kernel scope link src 10.205.255.49
10.205.255.49 stanley-acta-techinc
10.205.255.50 unknown
10.205.255.51 kalium-acta-techinc
10.205.255.52 nothing
10.205.255.53 nothing
10.205.255.54 nothing
#hemelvaart
#hemelvaart
#10.205.255.40/29 dev eth1.14 proto kernel scope link src 10.205.255.41
10.205.255.41 stanley-acta-hemelvaart
10.205.255.42 something
10.205.255.43 something
10.205.255.44 kalium-acta-hemelvaart
10.205.255.45 nothing
10.205.255.46 something
#!/bin/bash
#!/bin/bash
#set -e
. paths.sh
make_zone () {
......@@ -20,7 +20,7 @@
-h 10.205.253.1 \
-v 8 -y \
-s 10.205.253.1 \
-H $HFD/hostfile.irl \
-H $HFD/$hostfile \
-u wireless-amsterdam@lists.puscii.nl \
-M -t
......@@ -35,10 +35,11 @@
}
#routers /radios /etc.
make_zone hostfile.amsw amsw.020 10.205.252
make_zone hostfile.routers routers.020 10.205.253
make_zone hostfile.transfernet transfernet.020 10.205.254
make_zone hostfile.radio radio.020 10.205.255
make_zone hostfile.amsw amsw.020 10.205.252:255.255.255.0
make_zone hostfile.routers routers.020 10.205.253:255.255.255.0
make_zone hostfile.transfernet transfernet.020 10.205.255:255.255.255.0
#is same subnet as transfernet
#make_zone hostfile.radio radio.020 10.205.255:255.255.255.0
......@@ -46,7 +47,7 @@ make_zone hostfile.radio radio.020 10.205.255
# irl.squesh.net zone
#
make_zone hostfile.irl irl.020 10.205.12:255.255.255.0
make_zone hostfile.irl irl.020 10.205.12:255.255.255.0:
make_zone hostfile.irl irl.squesh.net 10.205.12:255.255.255.0
#ki zone
......
......@@ -7,4 +7,6 @@ OUT=$REPO/dns/output/
BIN=$REPO/dns/
HFD=$REPO/dns/hostfiles/
export OUT
export BIN
export HFD
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment