Files
porkbun-ddns/README.md
T
2026-04-17 15:05:48 -04:00

879 B

Dynamic DNS Client for Porkbun API

A simple program for keeping all of your "A" records up to date!

To use, you will need your own Porkbun API key + secret.

Then, place the porkbun-ddns executable in a folder.

Create a new file in the same folder named .env.

Copy the text below into the .env file, replacing the example information with your own.

Note: only include top-level domain, it'll take care of identifying and updating subdomain IPs

 {
  "secretapikey": "XXXXXXXXXXXXX",
  "apikey": "XXXXXXXXXXXXX",
  "domains": [
    "example.com",
    "example.net",
    "example.io"
  ]
}

You are now ready to run the program!

I recommend scheduling the program with something like cron.

Source code is included, you can build it yourself if you want but the executable is up to date. This program was written with only the standard library, in Vim :)