Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/jacob-ian/do-ddns

A dyanmic DNS application for DigitalOcean
https://github.com/jacob-ian/do-ddns

Last synced: 9 days ago
JSON representation

A dyanmic DNS application for DigitalOcean

Awesome Lists containing this project

README

        

# do-ddns
A dynamic dns application for DigitalOcean DNS

## Installation
1. Build source code
```
cargo build --release
```
2. Run install.sh with sudo
```
sudo ./install.sh
```
3. Set configuration in `/etc/do-ddns/config.toml`
```toml
# Create the schedule on which to update the DNS record
# sec min hour day of month month day of week year
# * * * * * * *
schedule = "0 1/5 * * * * *"

# The domain managed by DigitalOcean DNS
domain = "example.com"

# The A Record to apply dynamic DNS
# Example: "home" -> home.example.com
record_name = "home"

# Get auth token from https://cloud.digitalocean.com/account/api/tokens
do_token = "AUTH_TOKEN"
```
4. Start the ddns service
```
sudo systemctl start do-ddns
```

## Updating Config
1. Update the config in `/etc/do-ddns/config.toml`
2. Restart the service
```
sudo systemctl restart do-ddns
```

## License
This repository uses the Apache License 2.0.