Porkbun DNS API client
Go to file
2022-12-13 01:48:38 +03:00
COPYING init 2022-04-16 21:04:35 +03:00
piglet Bump version to 0.1.3, fix wide table, add -l option 2022-12-13 01:48:38 +03:00
README.md Bump version to 0.1.3, fix wide table, add -l option 2022-12-13 01:48:38 +03:00

piglet

piglet is a Porkbun DNS API CLI client.

Currently piglet can:

  • Create a DNS record
  • Edit record
  • Delete DNS record
  • Retrieve DNS records

Installation

Just copy piglet to your PATH. For example:

install -Dm755 piglet /usr/local/bin/piglet

Install jq to enable pretty output.

Getting started

For first step setup the configuration file:

piglet config

piglet creates ~/.config/piglet.conf file with API credentials.

Retrieve DNS records:

piglet -d example.org retrieve

Create A-record on subdomain mail:

piglet -d example.org create name=mail type=a content=127.0.0.1 ttl=3600

Edit A-record for example.org (change to 127.0.0.1):

piglet -d example.org edit id=220755500 type=a content=127.0.0.1

Delete DNS record by id:

piglet -d example.org delete id=220755592

See piglet --help for more info.