Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CLI support to convert a whole folder at once #31

Open
andylobel opened this issue Aug 27, 2017 · 1 comment
Open

Add CLI support to convert a whole folder at once #31

andylobel opened this issue Aug 27, 2017 · 1 comment

Comments

@andylobel
Copy link

From json to bind and vice-versa

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

@elgs
Copy link
Owner

elgs commented Aug 27, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants