Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/inadarei/dyndns
Dynamic DNS Updater
https://github.com/inadarei/dyndns
dns dynamic go namecheap utility
Last synced: 17 days ago
JSON representation
Dynamic DNS Updater
- Host: GitHub
- URL: https://github.com/inadarei/dyndns
- Owner: inadarei
- Created: 2020-05-10T01:48:54.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-10T16:38:11.000Z (over 4 years ago)
- Last Synced: 2024-04-14T07:48:02.499Z (7 months ago)
- Topics: dns, dynamic, go, namecheap, utility
- Language: Go
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Dynamic DNS Updater
A tiny go app that helps update dynamic DNS records. Currently supported DNS provider(s):
1. Namecheap.
## What does it do
In its simplest form all those lines of Go code basically just do the same as the following bash one-liner:
```console
DDNS_ip="$(curl ifconfig.me/ip 2>/dev/null)" && \
curl "https://dynamicdns.park-your-domain.com/update?host=${DDNS_host}&domain=${DDNS_domain}&password=${DDNS_pwd}&ip=${DDNS_ip}"
```so yeah, Go programs are way too verbose, but we digress... Some time in the future this code could start supporting
other providers, at which point the bash one-liner won't be able to scale and the Go code will be equivalent to...
most likely: a bash script with still significantly less lines of code :)But it's fun to write Go apps that can easily be cross-compiled for different architectures and run anywhere as a single
binary, so...## Usage.
Set the following environmental variables: `DDNS_domain`, `DDNS_host`, `DDNS_pwd` and execute the go app in that environment.
## License
MIT License