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.
Recommend making an .env file with the following since the keys are really long...
secretapikey=SECRET_KEY_HERE
apikey=KEY_HEREor you can just set them in the terminal or .rc file.
export secretapikey=SECRET_KEY_HERE
export apikey=KEY_HERE./pbip example.com 5This will attempt to update records every 5 minutes for domain example.com.
git clone ssh://git@codeberg.org/gnp/pbip.git
cd pbip
cargo build