Skip to main content

Google DNS

Project description



NTT x Google DNS

ModulesCode DesignInstallDockerPythonEnvHow 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_dockers
build_docker
push_dockers
push_docker
pull_dockers
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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

google_dns-0.0.2-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file google_dns-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: google_dns-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.64.0 urllib3/1.26.5 CPython/3.10.4

File hashes

Hashes for google_dns-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1a423610f55ce555014587812249a6c41822de67c6e7396e2759d66c32261b66
MD5 7543fdf8229007e0571f0780f4de6d53
BLAKE2b-256 0744e8dcd4436d85eb6234f913c46ddc8c6ee0f3372d89332b4ce8111164e119

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page