source: hybrid/branches/releng-11/nanobsd/files/tools/update-nsd-zones@ 13784

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#
5fetch -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
8openssl enc -bf -pass pass:dns -in /tmp/dns.tar.gz.enc -out /dev/null -d 2>/dev/null || exit 1
9
10# Unpack files
11openssl enc -bf -pass pass:dns -in /tmp/dns.tar.gz.enc -d | tar -C /tmp -xzvf -
12
13# Reload autoritive DNS Server
14nsd-control reload
Note: See TracBrowser for help on using the repository browser.