This script updates A and AAAA records for domains and subdomains of Porkbun, using the ddns service in Openwrt.
It's open source, using GPL 3.0 license, and it takes great inspiration from @lin010151's Namesilo script.
- A dynamic public IP address (either IPv4 or IPv6).
- Porkbun API's public and secret key.
- Porkbun API activated for the domain you want to use.
- Curl, can be installed using
opkg install curl
. - GNU Wget with SSL support, can be installed using
opkg install wget
. - (If using HTTPS) System CA certificates, can be installed using
opkg install ca-certificates
.
Copy the script to a path on your Openwrt router. I recommend using ssh.
Remember to give execute permission to the script: chmod +x update_porkbun.sh
.
TODO