porkbun ip (updater)
This little program updates the IP for A records of a specified domain hosted on porkbun.com and monitors it indefinitely. This is perfect for servers on a dynamic IP that can potentially change, which is typical of a self-hosted setup.
NOTE: You will need to install curl first on your system before attempting to run the program. This is how we obtain the IP of the machine running the program. You will also need to enable API access for your porkbun domain.
Make a config.toml file in the root directory with the following.
[env]
secretapikey="SECRET_KEY_HERE"
apikey="KEY_HERE"./pbip example.com 5This will attempt to update records every 5 minutes for domain example.com.
git clone https://git.liminal.cafe/sakura/pbip.git
cd pbip
cargo build --release --config config.toml