Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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