The Cloudflare DNS Wizard is a Python script that empowers you to interact with Cloudflare's DNS service using their powerful API. With this tool, you can effortlessly manage DNS records, view zone information, and access account details.
- Fetch DNS Records: Retrieve DNS records for your Cloudflare zone.
- Display Zone Information: Get insights into your Cloudflare zone.
- Display Account Information: View your Cloudflare account details.
- Update DNS Records: Modify DNS records of a specific type with new content.
Before you get started, make sure you have the following prerequisites:
-
Python 3.x: You need Python 3.x installed on your machine. You can download it from Python's official website.
-
Required Python Packages: Install the required Python packages listed in
requirements.txt
using the following command:pip install -r requirements.txt
-
Python Virtual Environment (venv): We recommend setting up a virtual environment to keep your project dependencies isolated. You can create and activate a virtual environment using the following commands:
# Create a virtual environment (replace 'venv' with your preferred name) python -m venv venv # Activate the virtual environment (Windows) .\venv\Scripts\activate # Activate the virtual environment (macOS and Linux) source venv/bin/activate
Once activated, your terminal prompt will change to indicate that you are now working within the virtual environment.
-
Clone the Repository:
git clone https://github.com/your-username/cloudflare-dns-wizard.git
-
Configure Your Cloudflare API Details:
- Create a
config.txt
file and input your Cloudflare email, API token, Zone ID, and Account ID as specified in the script.
- Create a
-
Run the Script:
python cloudflare_dns_wizard.py
-
Follow the On-Screen Instructions:
The script will guide you through various actions to manage your DNS records and Cloudflare account.
You have the flexibility to customize the script by modifying the code to suit your specific needs. For instance, you can adjust API endpoint URLs or expand the script's functionality to include additional features.
This project is licensed under the MIT License. For more details, please refer to the LICENSE file.
- Special thanks to Cloudflare for providing a robust API that powers this tool.
This Cloudflare DNS Wizard simplifies the management of your DNS records and empowers you to harness the full potential of Cloudflare's DNS service. It's a valuable tool for professionals in the cybersecurity field and anyone looking to optimize their DNS management.
For inquiries and support, feel free to reach out to me on GitHub: VSM97 GitHub Profile
Thank you for considering this tool, and I look forward to your contributions and feedback.