Skip to main content



NTT x Google DNS

Modules • Code Design • Install • Docker • PythonEnv • How To Use •

This Google DNS package consists of :

  • A NTT router IP parser to update dynamic DNS on google domains .

Modules

Component Description
google_dns Contains the implementation of GoogleDNS

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",
    ],
)

Install

To clone and run this application, you'll need Git and https://docs.docker.com/docker-for-mac/install/ and Python installed on your computer.

From your command line:

# Clone this repository and install the code
git clone https://github.com/JeanMaximilienCadic/ntt_google_dns

# Go into the repository
cd ntt_google_dns

Config file

Create a config file at /opt/google_dns/config.yml

project: google_dns
url: 'http://[YOUR ROUTER IP]/ntt/information/fifth/current'
authorization: "dXNlcjphZG1pbg=="
cookie: 'HGWSESSIONID=1hoa40gjlzl2g'

hostnames:
- hostname: "mywebsite.com"
  google_id: "ksfjIkmldslI"
  google_password: 'sdk11kjl1jd'

Makefile

Exhaustive list of make commands:

build_docker
push_docker
pull_docker
docker_run
checkout
all
all_branch

Docker

(* recommended)

To build and run the docker image

make build_docker
make docker_run

PythonEnv

(* not recommended)

python setup.py install 

How to

  • Run the cron job
python -m google_dns

Metadata

Release files for google-dns 0.0.3

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

Built distribution (wheel)

Table of built distributions (wheels) for google-dns 0.0.3
File Interpreter ABI Platform
google_dns-0.0.3-py3-none-any.whl Python 3 none any Details

Release files / google_dns-0.0.3-py3-none-any.whl

Download URL google_dns-0.0.3-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc04f9ca2d89c7f7d4163ab6835232532185713ca730a7029a051e94e97847ad
BLAKE2b-256 checksum
How to use checksums
0d93628054603e4191436263a350dec3f23e29d5ad794860d7ac05e022e9109a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file

0.0.2

1 release file

0.0.1

1 release file

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