Coder Social home page Coder Social logo

hbontempo-br / dynamic-ip-updater-google-domains Goto Github PK

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

Easily keep your Google Domains Synthetic Record up to date with your Dynamic IP.

License: MIT License

Python 93.40% Dockerfile 6.60%
isp henrique-bontempo dynamic-ip googledomains-dynamic-dns google domains python3 docker

dynamic-ip-updater-google-domains's Introduction

dynamic-ip-updater-google-domains

Easily keep your Google Domains Synthetic Record up to date with your Dynamic IP.

dynamic-ip-updater-google-domains is a small and easy project made with python3 that intents to help you keep your Google Domains Synthetic Record pointing to your machine when you have a dynamic IP from your ISP.

Originally designed by Henrique Bontempo.

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. You can hire a service for this like no-ip and they do a grate job, but if you want advance control or even some simple things like using your custom domain are paid and sometimes even require you to transfer your domain their platform.

[TODO] Put reference to inspiration article.

Objective

This project have a direct purpose: with just a domain in Google Domains keep a subdomain pointing to your home without worrying with static IP or ane other paid service. Just a small script running on your computer.

It's meant to do a simple and very specific function: monitor changes on it's current external IP and, if a change is noticed, update the domain on Google Domains Synthetic Records.

Getting Started

Before you start

You must have a domain in Google Domain (if you don't have one you can buy one or transfer your domain) and must set up a Dynamic DNS synthetic record a get it's credentials (detailed steps: https://support.google.com/domains/answer/6147083?hl=en).

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/dynamic-ip-updater-google-domains.git

Option 2: SSH

Check clone with ssh for further information.

    $ git clone [email protected]:hbontempo-br/dynamic-ip-updater-google-domains.git

Run script

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

With pip:

    $ pip3 install requirements.txt

Make sure you have the following environment variables set:

  • USERNAME=<your_domains_username>
  • PASSWORD=<your_domains_password>
  • HOSTNAME=<your_domain>
  • UPDATE_DELAY=<[optional]seconds_between_verifications>

Then just run the app.py:

    $ python3 app.py

Test [TODO]

๐Ÿšง ๐Ÿšง ๐Ÿšง ๐Ÿšง ๐Ÿšง Testing this project requires ..., instructions provided below.

    $ echo 'instructions'

Running on Docker

Build

The latest image of this project can be found on in DockerHub, but you can build it yourself:

    $ docker build -t dynamic-ip-updater-google-domains -f Dockerfile .

Run

It the recommended way, just use the environment variables described above:

    $ docker run \
        -e USERNAME=<your_domains_username> \
        -e PASSWORD=<your_domains_password> \
        -e HOSTNAME=<your_domain> \
        -e UPDATE_DELAY=<[optional]seconds_between_verifications> \
        --restart=always \
        -d hbontempo/dynamic-ip-updater-google-domains

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.

Pack [TODO]

๐Ÿšง ๐Ÿšง ๐Ÿšง ๐Ÿšง ๐Ÿšง Packing this project requires ..., instructions provided below.

    $ echo 'instructions'

Contributors

This project is originally designed by Henrique Bontempo. Check the contributors list for further information.

Contributing

This project has some rules, a code of conduct, and a process for submitting code and pull requests. Check the contributing file for further information.

Versioning

This project follows semantic versioning and keep a changelog practices. Changelog files should be provided in a per release basis using these practices.

License

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

dynamic-ip-updater-google-domains's People

Contributors

dependabot[bot] avatar hbontempo-br 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.