Giter VIP home page Giter VIP logo

senorgpt / autodnsupdater Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 17 KB

A simple script that automatically fetches your public IPV4 address and updates DNS records on Cloudflare to ensure they are always synchronized. This repository provides a simple and efficient solution for maintaining up-to-date DNS configurations without manual intervention.

Python 100.00%
automation cloudflare python

autodnsupdater's Introduction

AutoDNSUpdater

A simple script that automatically fetches your public IPV4 address and updates DNS records on Cloudflare to ensure they are always synchronized. This repository provides a simple and efficient solution for maintaining up-to-date DNS configurations without manual intervention.

Features:

  • Automatic IP address retrieval: utilizes configurable methods to fetch your current public IP address.
  • Cloudflare integration: Seamlessly interacts with the Cloudflare API to manage DNS records.
  • Dynamic DNS updates: Updates the DNS records on Cloudflare to reflect the latest IP address, ensuring your services are always accessible.
  • Configurable settings: Easily customize the script to match your specific DNS zones, Cloudflare account details, and API settings.
  • Logging and error handling: Comprehensive logging and error handling mechanisms provide visibility into the execution and help troubleshoot any issues.

Usage:

  1. Set up a Cloudflare account and obtain your API credentials.
  2. Configure the script by specifying your Cloudflare credentials and desired DNS records.
  3. Run the script, and it will automatically retrieve your IP address and update the DNS records on Cloudflare.

Images:

cloudflare_dns_records console_output

Requirements:

  1. Python
  2. Python requests Module

Configuration:

  • Edit & Configure config/config.py
  1. API_KEY : set to Cloudflare Global API Key (found at https://dash.cloudflare.com/profile under API Tokens > Global API Token)
  2. API_EMAIL : the email that is associated with your Cloudflare account
  3. ZONE_ID : the zone id for the target webiste (found at Cloudflare Overview website page, click on desired website, on the right side-bar at the bottom will be the Zone Token)
  4. RECORD_NAME : the respective name for the target DNS Record
  5. RECORD_TYPE : the respective type for the target DNS Record

Run:

python ./main.py - within the download path.

Disclaimer:

Please note that this is a community-driven project and should be used at your own risk. Make sure to review the code and customize it to fit your requirements before deploying it in production environments.

Contributing:

Contributions are welcome! If you encounter any issues or have ideas for improvements, feel free to submit a pull request or open an issue in the repository.

autodnsupdater's People

Contributors

senorgpt avatar

Watchers

 avatar

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.