Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ctrlaltdev/diyddns
🌐 Dynamic DNS, DIY, with Cloudflare
https://github.com/ctrlaltdev/diyddns
api cloudflare ddns diy dns dynamic
Last synced: 3 months ago
JSON representation
🌐 Dynamic DNS, DIY, with Cloudflare
- Host: GitHub
- URL: https://github.com/ctrlaltdev/diyddns
- Owner: ctrlaltdev
- License: mpl-2.0
- Created: 2018-11-12T21:20:10.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2023-08-30T13:53:49.000Z (over 1 year ago)
- Last Synced: 2024-06-21T14:06:13.622Z (7 months ago)
- Topics: api, cloudflare, ddns, diy, dns, dynamic
- Language: Go
- Homepage: https://ctrlalt.dev/DIYDDNS
- Size: 23.4 KB
- Stars: 9
- Watchers: 5
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
DIY Script for Dynamic DNS using Cloudflare APIs
## INSTALLATION
### HomeBrew (only for macOS and linux amd64 and arm64)
```sh
brew install ctrlaltdev/tap/diyddns
```
or
```sh
brew tap ctrlaltdev/tap
brew install diyddns
```### Easy Shell Script
```sh
curl -fSsL https://ln.0x5f.info/getDIYDDNS | sh
```It will prompt you for your OS and ARCH to download and install the right version - it will require sudo to install the binary to /usr/local/bin
### DIY Shell Script
```sh
version=v2.1.0os=$1
arch=$2if [ -z "$os" ] || [ -z "$arch" ]; then
echo -n "What is your OS? [darwin/linux] "
read os < /dev/tty
echo -n "What is your ARCH? [amd64/arm64/armv7/armv6/armv5] "
read arch < /dev/tty
ficurl -o DIYDDNS-$os-$arch.tar.gz -sL https://github.com/ctrlaltdev/DIYDDNS/releases/download/$version/DIYDDNS-$os-$arch.tar.gz
curl -o DIYDDNS-$os-$arch.tar.gz.sha256 -sL https://github.com/ctrlaltdev/DIYDDNS/releases/download/$version/DIYDDNS-$os-$arch.tar.gz.sha256
sha256sum -c DIYDDNS-$os-$arch.tar.gz.sha256tar xzf DIYDDNS-$os-$arch.tar.gz
rm DIYDDNS-$os-$arch.tar.gz*
sudo mv DIYDDNS /usr/local/bin/
echo "\nDIYDDNS INSTALLED\n"
DIYDDNS -h
```
## INIT
You'll need your Cloudflare API Key (in your profile, on cloudflare website)
```sh
DIYDDNS -init
```
and provide your cloudflare email and api key when prompted## RUN IT LIKE YOU MEAN IT
Now that you're set, you have to make that run: `all hail the mighty cron`
You should be able to use something like that:
```
* * * * * DIYDDNS -fqdn sub.domain.tld >> /dev/null
```