Google DNS
Project description
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
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file google_dns-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: google_dns-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc04f9ca2d89c7f7d4163ab6835232532185713ca730a7029a051e94e97847ad |
|
MD5 | d7d8bd1706684019667d3f7b9f8f1d3c |
|
BLAKE2b-256 | 0d93628054603e4191436263a350dec3f23e29d5ad794860d7ac05e022e9109a |