https://github.com/jeanmaximiliencadic/ntt_google_dns
NTT router IP parser to update dynamic DNS on google domains
https://github.com/jeanmaximiliencadic/ntt_google_dns
dns google network ntt
Last synced: 5 months ago
JSON representation
NTT router IP parser to update dynamic DNS on google domains
- Host: GitHub
- URL: https://github.com/jeanmaximiliencadic/ntt_google_dns
- Owner: JeanMaximilienCadic
- License: mit
- Created: 2022-09-15T03:30:23.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-15T11:55:15.000Z (almost 4 years ago)
- Last Synced: 2025-09-10T16:13:10.108Z (10 months ago)
- Topics: dns, google, network, ntt
- Language: Python
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
NTT x Google DNS
Modules •
Code structure •
Installing the application •
Makefile commands •
Environments •
Running the application
This Google DNS package consists of an NTT router IP parser for updating the dynamic DNS of Google domains.
# Modules
| Component | Description |
| ---- | --- |
| **google_dns** | Contains the implementation of Google DNS |
# Code structure
```python
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",
],
)
```
# Installing the application
To clone and run this application, you'll need the following installed on your computer:
- [Git](https://git-scm.com)
- Docker Desktop
- [Install Docker Desktop on Mac](https://docs.docker.com/docker-for-mac/install/)
- [Install Docker Desktop on Windows](https://docs.docker.com/desktop/install/windows-install/)
- [Install Docker Desktop on Linux](https://docs.docker.com/desktop/install/linux-install/)
- [Python](https://www.python.org/downloads/)
From the command line, enter the following:
```console
# Clone this repository
git clone https://github.com/JeanMaximilienCadic/ntt_google_dns
# Go into the repository
cd ntt_google_dns
```
## Setting up the config file
Create a config file at `/opt/google_dns/config.yml`. Then, add the following to the file.
```yaml
project: google_dns
url: 'http:///ntt/information/fifth/current'
authorization: "dXNlcjphZG1pbg=="
cookie: 'HGWSESSIONID=1hoa40gjlzl2g'
hostnames:
- hostname: ""
google_id: ""
google_password: ''
```
# Makefile commands
Exhaustive list of make commands:
```console
build_docker
push_docker
pull_docker
docker_run
checkout
```
# Environments
## Docker
> **Note**
>
> Running this application by using Docker is recommended.
To build and run the docker image
```console
make build_docker
make docker_run
```
## PythonEnv
> **Warning**
>
> Running this application by using PythonEnv is possible but *not* recommended.
```console
python setup.py install
```
# Running the application
To run the application, enter the following from the command line:
```console
python -m google_dns
```