Skip to content

Commit a9e21ee

Browse files
committed
fix script
1 parent 4910cab commit a9e21ee

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

update-dns.sh

+4-5
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ DNSSECKeyFolder="/etc/bind/keys/"
2121
TempFolder="/tmp/dnsscripts/"
2222
# specify the bird/babel or other routing table[s]
2323
# if RoutingTables is empty, the ICVPN-ACL-List will be fetched remotely (for servers that are no gateway)
24-
#RoutingTables="10"
25-
RoutingTables=""
24+
RoutingTables="10"
25+
#RoutingTables=""
2626

2727
# -1 -> disable bind [restart|reload]
2828
# 0 -> Debian (and like) systemctl [reload|restart] bind9
@@ -136,8 +136,7 @@ if [ -n "$ServeMasterZone" ] || [ -n "$ServeExtZone" ]; then
136136
if [ -n "$ExternalView" ] || [ -n "$ServeExtZone" ]; then
137137
SerialExtern="$(GetZoneFileSerial "$ExternFile")"
138138
if [ $((LocalMasterSerial)) -gt $((SerialExtern)) ]; then
139-
sed -e '/^[^;]*\s\(10.\|[fF][cdCD][0-9a-fA-F]\{2\}:\)\S*\s*\(;.*\)\?$/d; \
140-
s/^[^;^@]*\s\+\([^;]*\)\s[Ii][Nn]\s\+[Ss][Oo][Aa]\s/@ \1 IN SOA /g' "$FileForExternGeneration" \
139+
sed -e '/^[^;]*\s\(10.\|[fF][cdCD][0-9a-fA-F]\{2\}:\)\S*\s*\(;.*\)\?$/d; s/^[^;^@]*\s\+\([^;]*\)\s[Ii][Nn]\s\+[Ss][Oo][Aa]\s/@ \1 IN SOA /g' "$FileForExternGeneration" \
141140
> "$ExternFile"
142141
UpdateExternView=1
143142
[ -z "$ExternalView" ] || ReloadZone "$CommunityExternDomain" "$ExternalView"
@@ -255,7 +254,7 @@ for Hood in $Hoods; do
255254
fi
256255
done
257256

258-
#./update-public-acl.sh "$BindIcvpnAclTmp" "$RemoteLocation" "$RoutingTables"
257+
./update-public-acl.sh "$BindIcvpnAclTmp" "$RemoteLocation" "$RoutingTables"
259258

260259
ReConfigBind=0
261260
UpdateBindConfig() {

0 commit comments

Comments
 (0)