Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/goarano/ddnss
Dynamic Domain Name Service Switch
https://github.com/goarano/ddnss
Last synced: 4 days ago
JSON representation
Dynamic Domain Name Service Switch
- Host: GitHub
- URL: https://github.com/goarano/ddnss
- Owner: goarano
- License: gpl-3.0
- Created: 2017-02-23T09:38:15.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T03:47:39.000Z (about 2 years ago)
- Last Synced: 2024-11-10T16:07:18.658Z (2 months ago)
- Language: Python
- Size: 98.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ddnss
Dynamic Domain Name Service Switch# Introduction
Simple Python HTTP server that reads a callers IP and saves it to a folder.
An NSS module on the host will then use these saved IPs to connect them with a specified hostname, ending with ```.ddnss``` as TLD.
The endpoint is secured using Basic HTTP Auth.# Setup
## SSL
Use a proxy (e.g. nginx) for SSL connections.## Server in Docker
Server example for docker-compose, see ```docker-compose.yaml```## Client in Docker
Nginx client example for docker-compose ```docker-compose-nginx-ddnss.yaml```# Examples
## Save IP
```
curl -u myuser:mypassword https://ddnss.example.com/myhost -X PUT
```
or
```
curl -u myuser:mypassword https://ddnss.example.com/myhost -X PUT -d "ip=127.0.0.1"
```
or
```
curl -u myuser:mypassword https://ddnss.example.com/myhost/set -X POST -F "ip=127.0.0.1"
```## Get saved IP
```
curl -u myuser:mypassword https://ddnss.example.com/myhost
```