While I'm downloading zone files, the com.zone sometimes get downloaded partially with no errors.
I have added one more step in my script to validate if the file gets downloaded completely by issuing the following command.
$ gzip --test com.txt.gzgzip: com.txt.gz: unexpected end of file
Even if I try to run the czds-dl for a second time, I got the following logs:
While I'm downloading zone files, the
com.zone
sometimes get downloaded partially with no errors.I have added one more step in my script to validate if the file gets downloaded completely by issuing the following command.
$ gzip --test com.txt.gz
gzip: com.txt.gz: unexpected end of file
Even if I try to run the
czds-dl
for a second time, I got the following logs:It would be very handy to check the content-length after each download and log/throw/retry and delete and clean up any corrupted files if any.
this will help the user to trust the downloaded zones.