Commit 89230cbf authored by hark's avatar hark
Browse files

add zonetransfer for net zone (doesn't work yet)

make.sh should be better now
parent 3110d027
...@@ -6,6 +6,8 @@ zone "squesh.net" in { ...@@ -6,6 +6,8 @@ zone "squesh.net" in {
zone "net.020wireless.nl" in { zone "net.020wireless.nl" in {
type master; type master;
file "/etc/bind/zones/net.020wireless.nl.db"; file "/etc/bind/zones/net.020wireless.nl.db";
allow-transfer { 162.247.75.159; 185.52.224.5; };
notify yes;
}; };
zone "020" { zone "020" {
......
...@@ -16,6 +16,9 @@ ...@@ -16,6 +16,9 @@
192.168.88.15 192.168.88.15
192.168.88.16 192.168.88.16
192.168.88.17 wfc-router-temp 192.168.88.17 wfc-router-temp
192.168.88.20 wfc-radio-to-acta
192.168.88.123 kalium 192.168.88.123 kalium
...@@ -2,37 +2,52 @@ ...@@ -2,37 +2,52 @@
#set -e #set -e
. paths.sh . paths.sh
make_zone () { HOSTS="stanleyH kalium"
# 1 hostfile.irl
# 2 irl.020 cz ()
# 3 10.205.12:255.255.0.0 (don't put leading 0's in subnet) {
# 4 # copies the zonefiles
hostfile=$1 # $1 name
zone_name=$2 # $2 reverse
subnet=$3 echo "copying $1 zone, with subnet $2"
cd $OUT/$1.020
mkdir $OUT/$zone_name scp db.$1 db.$2 root@$H:/etc/bind/zones/
cd $OUT/$zone_name && rm * cd $OUT
}
$BIN/h2n -d $zone_name \
-m 10:mail.$zone_name \
-n $subnet \
-h 10.205.253.1 \ make_zone () {
-v 8 -y \ # 1 hostfile.irl
-s 10.205.253.1 \ # 2 irl.020
-H $HFD/$hostfile \ # 3 10.205.12:255.255.0.0 (don't put leading 0's in subnet)
-u wireless-amsterdam@lists.puscii.nl \ # 4
-M -t hostfile=$1
zone_name=$2
shortname="!todo!" subnet=$3
echo "made: "
ls -lh $OUT/$zone_name mkdir $OUT/$zone_name
echo " $OUT/$zone_name/db.$shortname" cd $OUT/$zone_name && rm *
echo " $OUT/$zone_name/db.$shortname"
$BIN/h2n -d $zone_name \
cd $OUT -m 10:mail.$zone_name \
-n $subnet \
} -h 10.205.253.1 \
-v 8 -y \
-s 10.205.253.1 \
-H $HFD/$hostfile \
-u wireless-amsterdam@lists.puscii.nl \
-M -t
shortname="!todo!"
echo "made: "
ls -lh $OUT/$zone_name
echo " $OUT/$zone_name/db.$shortname"
echo " $OUT/$zone_name/db.$shortname"
cd $OUT
}
#routers /radios /etc. #routers /radios /etc.
make_zone routers routers.020 10.205.253:255.255.255.0 make_zone routers routers.020 10.205.253:255.255.255.0
......
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