dns-zonefile icon indicating copy to clipboard operation
dns-zonefile copied to clipboard

Add CLI support to convert a whole folder at once

Open andylobel opened this issue 8 years ago • 1 comments

From json to bind and vice-versa

E.g. zonefile -g dns-zones/json --out dns-zones/bind --extension ".txt"

andylobel avatar Aug 27 '17 20:08 andylobel

Try if this bash script works:

#!/bin/bash

for filename in dns-zones/json/*.json; do
    zonefile "$filename" > "dns-zones/bind/$(basename "$filename" .json).txt"
done

elgs avatar Aug 27 '17 20:08 elgs