ddporkbun

command module
v0.0.0-...-535c5f3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2025 License: BSD-3-Clause Imports: 21 Imported by: 0

README

ddporkbun

Porkbun Dynamic DNS client in Go.

Usage

Install by (NOTE: it requires go 1.21rc3 and above):

go install go.yhsif.com/ddporkbun@latest

Run manually to update dyndns.mydomain.com with your current external IP:

ddporkbun --apikey="pk1_..." --secretapikey="sk1_..." --domain="mydomain.com" --subdomain="dyndns"

To run it in cron jobs, for example cron.hourly, it's recommended to add --log-level=ERROR arg so it only logs when something went wrong:

#!/bin/sh

/path/to/ddporkbun --apikey="pk1_..." --secretapikey="sk1_..." --domain="mydomain.com" --subdomain="dyndns" --log-level=ERROR

Run ddporkbun --help to see all options. Use --log-level=DEBUG for verbose logging.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL