Commit 89230cbf authored by hark's avatar hark

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 {
zone "net.020wireless.nl" in {
type master;
file "/etc/bind/zones/net.020wireless.nl.db";
allow-transfer { 162.247.75.159; 185.52.224.5; };
notify yes;
};
zone "020" {
......
......@@ -16,6 +16,9 @@
192.168.88.15
192.168.88.16
192.168.88.17 wfc-router-temp
192.168.88.20 wfc-radio-to-acta
192.168.88.123 kalium
......@@ -2,37 +2,52 @@
#set -e
. paths.sh
make_zone () {
# 1 hostfile.irl
# 2 irl.020
# 3 10.205.12:255.255.0.0 (don't put leading 0's in subnet)
# 4
hostfile=$1
zone_name=$2
subnet=$3
mkdir $OUT/$zone_name
cd $OUT/$zone_name && rm *
$BIN/h2n -d $zone_name \
-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
}
HOSTS="stanleyH kalium"
cz ()
{
# copies the zonefiles
# $1 name
# $2 reverse
echo "copying $1 zone, with subnet $2"
cd $OUT/$1.020
scp db.$1 db.$2 root@$H:/etc/bind/zones/
cd $OUT
}
make_zone () {
# 1 hostfile.irl
# 2 irl.020
# 3 10.205.12:255.255.0.0 (don't put leading 0's in subnet)
# 4
hostfile=$1
zone_name=$2
subnet=$3
mkdir $OUT/$zone_name
cd $OUT/$zone_name && rm *
$BIN/h2n -d $zone_name \
-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.
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