34 lines
854 B
Markdown
34 lines
854 B
Markdown
# Dynamic DNS Client for Porkbun API
|
|
|
|
A simple program for keeping all of your A records up to date!
|
|
|
|
Written in Go with only the standard library.
|
|
|
|
To use, you will need your own Porkbun API key + secret.
|
|
|
|
Then, place the `dynamic-dns` 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.
|