Skip to content

A wrapper for the Dynu REST API to allow for the automatic updating of IP addresses for your Dynu DDNS Services

License

Notifications You must be signed in to change notification settings

rgbalex/dynu-rest-api-updater

Repository files navigation

forthebadge

Code Style: Black

dynu-rest-api-updater

(Note: Lots of this project has been generated by GitHub Copilot, and tweaked by me) This is a repository for the dynu-rest-api-updater project.

Please Note: I am not affiliated with Dynu in any way this project is made entitely for fun.

Caution

This code currently stores your client ID and your API key in plaintext at %USERPROFILE%/dynu_secret.json

You will need to exercise caution around this file and make your own judgement on if this is a safe thing to do. I take no responsibility for leaked keys.

I usually was using a Rasberry Pi 2 running DietPI to run simple scripts like this to update my IP address and more but I found during my house move that I was only able to setup my Desktop PC and this meant sometimes servers were running for me but their DDNS was not.

To combat this, I built this application that could run on my host machine to automatically update the IP of a given DDNS domain or group while running my servers also.

Description

The dynu-rest-api-updater is a tool that allows you to update your Dynu DNS records using the Dynu REST API. It provides a simple and convenient way to automate the process of keeping your DNS records up to date.

Screenshot

Features

  • Update Dynu DNS records using the Dynu REST API
  • Easy configuration and setup
  • Automatic IP address detection
  • Scheduled updates to your API key

Installation

To install the dynu-rest-api-updater, follow these steps:

  1. Clone the repository: git clone https://github.com/your-username/dynu-rest-api-updater.git
  2. Install the required dependencies: pip install -r requirements.txt
  3. Configure the application by editing the secret.json file or just run the application and paste values in (they are saved every time you make a request)
  4. Run the application: python -m dynu-updater

Contributing

Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for more information.

About

A wrapper for the Dynu REST API to allow for the automatic updating of IP addresses for your Dynu DDNS Services

Topics

Resources

License

Stars

Watchers

Forks

Languages