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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| google_dns-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for google_dns-0.0.3-py3-none-any.whl |
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
|
Security for google-dns 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.