Überflüssige Kommentare entfernt
This commit is contained in:
parent
bef8353f7c
commit
bbbc05ab3a
|
@ -1,26 +1,17 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#Name der Zone
|
|
||||||
DomainZone="50.10.in-addr.arpa."
|
DomainZone="50.10.in-addr.arpa."
|
||||||
#Positionen und Namen der Forward Lookup Zone Files
|
|
||||||
ForwardZoneFiles=("/srv/fff-dns/db.fff.community")
|
ForwardZoneFiles=("/srv/fff-dns/db.fff.community")
|
||||||
ReverseZoneFile="/var/lib/bind/db.50.10"
|
ReverseZoneFile="/var/lib/bind/db.50.10"
|
||||||
#Temporäres Verzeichnis - muss pro Zone exclusiv sein!
|
#Temporäres Verzeichnis - muss pro Zone exclusiv sein!
|
||||||
TempDir="/tmp/50.10.in-addr.arpa"
|
TempDir="/tmp/50.10.in-addr.arpa"
|
||||||
#TTL
|
|
||||||
TTL=3600
|
TTL=3600
|
||||||
#refresh
|
|
||||||
refresh=2000
|
refresh=2000
|
||||||
#retry
|
|
||||||
retry=6400
|
retry=6400
|
||||||
#expire
|
|
||||||
expire=2419200
|
expire=2419200
|
||||||
#minimum
|
|
||||||
minimum=86400
|
minimum=86400
|
||||||
#contact-mail
|
contactemail=franken.freifunk.net.
|
||||||
contact=franken.freifunk.net.
|
reverseservername=aquarius.gw.fff.community.
|
||||||
#responsible DNS Server by name (for reverseDNS your own)
|
|
||||||
responsible=aquarius.gw.fff.community.
|
|
||||||
|
|
||||||
#################################################################
|
#################################################################
|
||||||
|
|
||||||
|
@ -58,8 +49,8 @@ done
|
||||||
Serials=( $( for i in ${Serials[@]}; do echo "$i"; done | sort -rn ) )
|
Serials=( $( for i in ${Serials[@]}; do echo "$i"; done | sort -rn ) )
|
||||||
serial=${Serials[0]}
|
serial=${Serials[0]}
|
||||||
|
|
||||||
echo "$DomainZone $TTL IN SOA $responsible $contact $serial $refresh $retry $expire $minimum" > "$TempDir/$DomainZone"
|
echo "$DomainZone $TTL IN SOA $reverseservername $contactemail $serial $refresh $retry $expire $minimum" > "$TempDir/$DomainZone"
|
||||||
echo "$DomainZone $TTL IN NS $responsible" >> "$TempDir/$DomainZone"
|
echo "$DomainZone $TTL IN NS $reverseservername" >> "$TempDir/$DomainZone"
|
||||||
for ForwardZoneFile in $(ls $TempDir)
|
for ForwardZoneFile in $(ls $TempDir)
|
||||||
do
|
do
|
||||||
Hosts=($(cat "$TempDir/$ForwardZoneFile" | grep -v SOA | awk '{ print $1 }'))
|
Hosts=($(cat "$TempDir/$ForwardZoneFile" | grep -v SOA | awk '{ print $1 }'))
|
||||||
|
|
Loading…
Reference in New Issue