This Python script uses the CloudFlare API to first get all DNS zones IDs, and then export all DNS records for all zones.
Simply clone this repo, install Pandas, add your API Authorization Bearer into the headers.txt file and then execute the script.
git clone https://github.com/ob1lan/CloudFlareDNSDump.git
pip install pandas
python cloudflare_dns_dumper.py
This will get through all the DNS zones you have access to, and then exports all (sub)domains into those files:
- results.json
- results.csv
- Error handling and logging