Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
0
020_dns
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
020-wireless
020_dns
Commits
89230cbf
Commit
89230cbf
authored
Aug 03, 2016
by
hark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
3 changed files
with
51 additions
and
31 deletions
+51
-31
dns/hostfiles/staticzones.conf
dns/hostfiles/staticzones.conf
+2
-0
dns/hostfiles/vlan1acta
dns/hostfiles/vlan1acta
+3
-0
dns/make.sh
dns/make.sh
+46
-31
No files found.
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
Markdown
is supported
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