From 66fb9c3de40c8545a7f208f23670611e42205353 Mon Sep 17 00:00:00 2001 From: Jarrett Aiken Date: Mon, 4 May 2026 22:38:53 -0400 Subject: [PATCH] Convert outfile files from json to zonefile. --- scrape.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scrape.sh b/scrape.sh index ce1d5fe..1e7f7c9 100755 --- a/scrape.sh +++ b/scrape.sh @@ -17,6 +17,6 @@ curl -s "${CLOUDFLARE_API}/zones" "${HEADERS[@]}" | \ jq -r '.result.name') echo "Fetching DNS records for: ${zone_name}" - curl -s "${CLOUDFLARE_API}/zones/${zone_id}/dns_records" "${HEADERS[@]}" | \ - jq . > "out/${zone_name}.json" + curl -s "${CLOUDFLARE_API}/zones/${zone_id}/dns_records/export" "${HEADERS[@]}" \ + > "out/${zone_name}.txt" && sed -i '/^;; Exported:/d' "out/${zone_name}.txt" done