Skip to main content

Based on hbontempo-br/dynamic-ip-updater-google-domains

ddns-manager

ci codecov Code style: black Maintainability

Easily keep your DNS records up to date with your Dynamic IP.

ddns-manager is a small and easy project made with python3 that intents to help you keep your DNS records pointing to your machine when you have a dynamic IP from your ISP.

Originally designed by [Henrique Bontempo][author].

The problem

If you want to access you home network through a VPN, host your own website, host a game server, have remote access to our security cameras or any other task that you have to access your home network from the internet you must have to locate it .

The most direct way is through your public IP , and it's easy if you have a static IP, but they are expensive and for many regions almost exclusive to business. If your ISP won't provide static IP on your location or you don't want to pay for it than you are stuck with a dynamic IP. You still can reach your home through your external IP, but there are no guarantees that this address won't change without a notice.

To circumvent this problem the most common idea is to use a url address that is constantly updated your external IP.

Objective

This project have a direct purpose: a simple and easy way of managing your DDNS.

Getting Started

Clone

Cloning this project requires git, instructions provided below.

Option 1: HTTPS

Check clone with https for further information.

    $ git clone https://github.com/hbontempo-br/ddns-manager.git

Option 2: SSH

Check clone with ssh for further information.

    $ git clone git@github.com:hbontempo-br/ddns-manager.git

Run script

Install dependencies (setting up a virtual environment is recommended):

With pip:

    $ pip3 install requirements.txt

Then just run:

    $ python3 -m ddns_manager

Test

No secret here:

    $ python3 -m unittest discover

Running on Docker

You can run the update loop inside a docker container. The image can be found in Docker-hub.

Build

    $ docker build -t ddns-manager -f Dockerfile .

Run

Just mount the configuration file in the /config/config.yml :

    $ docker run \
        -v PATH_CONFIG:/config/config.yml
        -d hbontempo/ddns-manager

It's a good practice to run your this container with a --restart=always as showed above so your container starts running again even if a problem happens.

Contributing

Did you found a problem? Think that something could be improved? Just open an Issue

License

This project is licensed under the MIT license. Check the license file for further information.

Release files for ddns-manager 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ddns-manager 0.1.3
File Size Uploaded
ddns-manager-0.1.3.tar.gz 16.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ddns-manager 0.1.3
File Interpreter ABI Platform
ddns_manager-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 46.7 kB

Release files / ddns-manager-0.1.3.tar.gz

Download URL ddns-manager-0.1.3.tar.gz
Size 16.7 kB
Tags Source
SHA-256 checksum
How to use checksums
92b2914970dcb825b14a60dfbe6bc0db70eab02c1e91516fc25bd84a545fc5fb
BLAKE2b-256 checksum
How to use checksums
cfce2f9006b4777b417dbb691c4db0cb530ef7e4fd75c291f913f1b4fc4bf322
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.11

Release files / ddns_manager-0.1.3-py3-none-any.whl

Download URL ddns_manager-0.1.3-py3-none-any.whl
Size 29.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
288745020e477ca938037ccf6f63015bd5589c62a6dfd1d4cd29f291687bf14a
BLAKE2b-256 checksum
How to use checksums
ddb3505d92934203f62931ba779866f0071bb5bf6168ee134497ac310dfd606f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.11

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page