shadowfax

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 1 Imported by: 0

README

shadowfax

"Shadowfax, lord of all horses." — Gandalf

A small CLI tool for managing Porkbun DNS records via their JSON API.

Installation

go install github.com/fireflysoftware/shadowfax@latest

Or build from source:

git clone https://github.com/fireflysoftware/shadowfax
cd shadowfax
go build -o shadowfax .

Configuration

Shadowfax looks for credentials in ~/.dotfiles/.env, falling back to a .env in the current directory.

cp .env.example ~/.dotfiles/.env
# then fill in your keys

Get your API keys from the Porkbun API portal.

PORKBUN_API_KEY=pk1_your_api_key_here
PORKBUN_SECRET_KEY=sk1_your_secret_key_here

Usage

Create a record
# A record (root)
shadowfax dns create --domain example.com --type A --content 1.2.3.4

# CNAME for www
shadowfax dns create --domain example.com --type CNAME --name www --content example.com

# Custom TTL
shadowfax dns create --domain example.com --type A --content 1.2.3.4 --ttl 300

Default TTL is 600 seconds.

List records
shadowfax dns list --domain example.com
Delete a record
# Get the record ID from dns list first
shadowfax dns delete --domain example.com --id 123456

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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