Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
020-wireless
020_dns
Commits
89230cbf
Commit
89230cbf
authored
Aug 03, 2016
by
hark
Browse files
add zonetransfer for net zone (doesn't work yet)
make.sh should be better now
parent
3110d027
Changes
3
Hide whitespace changes
Inline
Side-by-side
dns/hostfiles/staticzones.conf
View file @
89230cbf
...
...
@@ -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"
{
...
...
dns/hostfiles/vlan1acta
View file @
89230cbf
...
...
@@ -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
dns/make.sh
View file @
89230cbf
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment