Skip to content

cmbarba/porkbun-dns-updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

porkbun-dns-updater

A bash script for updating A records for domains on porkbun.com. The script uses the JSON processor jq, the website ifconfig.me, and the porkbun.com API. This script was made from the desire for a self-hosted dynamic DNS.

Usage

Edit the example.json file with your own secretapikey, apikey, domain, and subdomain from Porkbun.

Make porkbun-dns-updater executable and run it with the json filename as an argument:

./porkbun-dns-updater /PATH/file.json

If your current public IP address as returned from ifconfig.me differs from the current A record, the A record will be updated with your current public IP address.

The script can be run on its own or periodically using a service like cron. At time of writing I am unsure of what kind of rate-limiting Porkbun employs, but once every 5 minutes appears to be safe.

About

A script to update DNS records on porkbun.com.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages