Last change
on this file since 13784 was 13768, checked in by rick, 8 years ago |
Authoritive zone file transfers, workaround.
Using openssl enc to verify content of the file, so no need for the password to
be secret).
|
-
Property svn:executable
set to
*
|
File size:
428 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 | #
|
---|
3 | # Update local autoritive DNS server
|
---|
4 | #
|
---|
5 | fetch -T 5 -o /tmp/dns.tar.gz.enc http://wirelessleiden.nl/dns/latest.tar.gz.enc || exit 1
|
---|
6 |
|
---|
7 | # Check if file has transfered succesfully
|
---|
8 | openssl enc -bf -pass pass:dns -in /tmp/dns.tar.gz.enc -out /dev/null -d 2>/dev/null || exit 1
|
---|
9 |
|
---|
10 | # Unpack files
|
---|
11 | openssl enc -bf -pass pass:dns -in /tmp/dns.tar.gz.enc -d | tar -C /tmp -xzvf -
|
---|
12 |
|
---|
13 | # Reload autoritive DNS Server
|
---|
14 | nsd-control reload
|
---|
Note:
See
TracBrowser
for help on using the repository browser.