Submitted by pat on Tue, 2008-07-22 19:46
I publish my domains from a central server via http and grab the file via wget. Well, that turned out to be a problem when the vps host for one of my off network dns's had a network hick-up during the transfer, and wget happily wrote the partial file and the script happily regenerated the data.cdb.
To fix this I reworked the script and added a checksum to verify the that the file was the same. If the checksum doesn't match, the tinydns cdb file is not regenerated.
#!/bin/sh