Skip to content

NTT router IP parser to update dynamic DNS on google domains

License

Notifications You must be signed in to change notification settings

JeanMaximilienCadic/ntt_google_dns

Repository files navigation



NTT x Google DNS

ModulesCode structureInstalling the applicationMakefile commandsEnvironmentsRunning the application

This Google DNS package consists of an NTT router IP parser for updating the dynamic DNS of Google domains.

Modules

Component Description
google_dns Contains the implementation of Google DNS

Code structure

from setuptools import setup

from google_dns import __version__

setup(
    name="google_dns",
    version=__version__,
    packages=[
        "google_dns",
    ],
    url="https://github.com/JeanMaximilienCadic/ntt_google_dns",
    license="MIT",
    author="Jean Maximilien Cadic",
    long_description="".join(open("README.md", "r").readlines()),
    long_description_content_type="text/markdown",
    python_requires=">=3.6",
    install_requires=[r.rsplit()[0] for r in open("requirements.txt")],
    author_email="git@cadic.jp",
    description="Google DNS",
    classifiers=[
        "Programming Language :: Python :: 3.6",
        "License :: OSI Approved :: MIT License",
    ],
)

Installing the application

To clone and run this application, you'll need the following installed on your computer:

From the command line, enter the following:

# Clone this repository
git clone https://github.com/JeanMaximilienCadic/ntt_google_dns

# Go into the repository
cd ntt_google_dns

Setting up the config file

Create a config file at /opt/google_dns/config.yml. Then, add the following to the file.

project: google_dns
url: 'http://<your-router-IP>/ntt/information/fifth/current'
authorization: "dXNlcjphZG1pbg=="
cookie: 'HGWSESSIONID=1hoa40gjlzl2g'

hostnames:
- hostname: "<your-website.com>"
  google_id: "<your-Google-ID>"
  google_password: '<your-Google-password>'

Makefile commands

Exhaustive list of make commands:

build_docker
push_docker
pull_docker
docker_run
checkout

Environments

Docker

Note

Running this application by using Docker is recommended.

To build and run the docker image

make build_docker
make docker_run

PythonEnv

Warning

Running this application by using PythonEnv is possible but not recommended.

python setup.py install 

Running the application

To run the application, enter the following from the command line:

python -m google_dns

About

NTT router IP parser to update dynamic DNS on google domains

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published