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_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

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.3-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

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