Modules • Code structure • Installing the application • Makefile commands • Environments • Running the application
This Google DNS package consists of an NTT router IP parser for updating the dynamic DNS of Google domains.
Component | Description |
---|---|
google_dns | Contains the implementation of Google DNS |
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",
],
)
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
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>'
Exhaustive list of make commands:
build_docker
push_docker
pull_docker
docker_run
checkout
Note
Running this application by using Docker is recommended.
To build and run the docker image
make build_docker
make docker_run
Warning
Running this application by using PythonEnv is possible but not recommended.
python setup.py install
To run the application, enter the following from the command line:
python -m google_dns