Skip to content
/ pbip Public

Updates the IP to porkbun A records for a domain when the server's dynamic IP changes. Great tool for self-hosting!

Notifications You must be signed in to change notification settings

gnp-x/pbip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pbip

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.

env

Recommend making an .env file with the following since the keys are really long...

secretapikey=SECRET_KEY_HERE
apikey=KEY_HERE

or you can just set them in the terminal or .rc file.

export secretapikey=SECRET_KEY_HERE
export apikey=KEY_HERE

Example

./pbip example.com 5

This will attempt to update records every 5 minutes for domain example.com.

Build

git clone ssh://git@codeberg.org/gnp/pbip.git
cd pbip
cargo build

About

Updates the IP to porkbun A records for a domain when the server's dynamic IP changes. Great tool for self-hosting!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages