Giter VIP home page Giter VIP logo

cf-dns-manager's Introduction

icons8-orange-48 Cloudflare DNS Record Manager

This Python script allows you to create, list, and delete DNS records in Cloudflare. It is designed to work with Python 3.6 or higher and requires the requests library.

Dependencies

  • python (version 3.6 or higher)
  • Libraries
    • requests

Installation and Setup

  1. Install Python 3.6 or higher if you haven't already.
  2. Create a new folder for the project.
  3. Clone the 1CF_dns_manager1 repository into your project folder:
git clone https://github.com/ImanMontajabi/CF_dns_manager.git
  1. Edit the user_id.json file with your Cloudflare account-related information.
  2. Obtain a .json file from Morteza Bashsiz script/ app that there is in result folder that contains your Cloudflare DNS scan data. Save it to your project folder and name it scan finally it is scan.json.
  3. Open a command prompt or terminal window and navigate to your project folder.
  4. Create a Python virtual environment by running:
python -m venv venv
  1. Activate the virtual environment by running (with CMD in Windows):
.\venv\Scripts\activate.bat
  1. Install the requests library by running:
pip install requests

Usage

Listing a DNS Record

To see a list of your DNS records, run the list_ip.py script:

python list_ip.py

This will display a table of all of your current DNS records in Cloudflare.

Creating DNS Records

To create your DNS records, run the create_ip.py script:

python create_ip.py

Deleting DNS Records

To delete DNS record, run the delete_ip.py script:

python delete_ip.py

License

This project is licensed under the MIT license. Please make sure to thoroughly read the license before using and/or modifying this script

Troubleshooting and Support

If you run into any issues or have questions about this script, please see the discussions open an issue in this repository.

Additionally, feel free to contribute to the project by submitting a pull request or offering suggestions for improvement.

cf-dns-manager's People

Contributors

imanmontajabi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

mbaneshi annbwo3

cf-dns-manager's Issues

best ip

سلام خسته نباشی
بی زحمت اگه که امکانش باشه تو برنامه create ip تابع best ip رو اصلاح کن ، چون الان این تابع ۱۰۰ ip اول رو لیست میکنه (درسته که اختلالشون پایین تره و ممکنه از چند رنج باشن) ولی میتونه ۱۰۰ ip از چند نوع رنج مختلف لیست کنه. ( که درصورتی که گله‌ای توی یک رنج اختلال انداختن ، تلاش چند باره‌ای نکرده باشیم واسه اسکن و اضافه به cf).
دمت گرم کارمونو راه انداختی 🙌🏻

json.decoder.JSONDecodeError: Extra data: line 1 column 7 (char 6)

سلام من موقع اجرا کردن فایل ها
هم با ترموکس هم با cmd ویندوز به این ارور بر میخورم
ممنون میشم یه بررسی بکنی

Traceback (most recent call last):
File "/storage/emulated/0/Download/CF DNS Manager/create_ip.py", line 15, in
iplist_to_iptext()
File "/storage/emulated/0/Download/CF DNS Manager/create_ip.py", line 12, in iplist_to_iptext
iplist = scan_to_iplist()
^^^^^^^^^^^^^^^^
File "/storage/emulated/0/Download/CF DNS Manager/create_ip.py", line 7, in scan_to_iplist
data = json.load(f)
^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/json/init.py", line 293, in load
return loads(fp.read(),
^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/json/init.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/json/decoder.py", line 340, in decode
raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 1 column 7 (char 6)
IMG_20230319_184915_723

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.