Porkbun Dynamic DNS client in Go
- Go 99.1%
- Makefile 0.9%
|
|
||
|---|---|---|
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| main.go | ||
| Makefile | ||
| README.md | ||
ddporkbun
Porkbun Dynamic DNS client in Go.
Usage
Install by (NOTE: it requires go 1.21rc3 and above):
go install go.yhsif.com/ddporkbun@latest
Run manually to update dyndns.mydomain.com with your current external IP:
ddporkbun --apikey="pk1_..." --secretapikey="sk1_..." --domain="mydomain.com" --subdomain="dyndns"
To run it in cron jobs, for example cron.hourly, it's recommended to add
--log-level=ERROR arg so it only logs when something went wrong:
#!/bin/sh
/path/to/ddporkbun --apikey="pk1_..." --secretapikey="sk1_..." --domain="mydomain.com" --subdomain="dyndns" --log-level=ERROR
Run ddporkbun --help to see all options.
Use --log-level=DEBUG for verbose logging.