PBJelly

command module
v0.0.0-...-a93f229 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2021 License: MPL-2.0 Imports: 10 Imported by: 0

README

PBJelly

Go Report CardGo Reference

Updates DNS records using the Porkbun API

Examples

PBJelly -l example.com

2021/06/03 22:34:34 Current IP: 203.0.113.32
2021/06/03 22:34:34 {ID:123456789 Name:test.example.com Type:A Content:203.0.113.22 TTL:600 Prio:0 Notes:}

PBJelly -id "123456789" -i "3h" -n "test.example.com" example.com

2021/06/04 01:35:33 Updated test.example.com to 203.0.113.32

You can also use config files, note that any commandline flags would override the values in the config file

PBJelly -c config/example.toml example.com

Arguments

Usage: PBJelly [options] <domain>
   -c string
        Path to config (default "config.toml")
  -i duration
        Time between updates (default 1h0m0s)
  -id string
        ID of Porkbun DNS entry, use -l to view ID (default "0")
  -l    List DNS records under domain
  -n string
        Name of DNS record
  -o    Execute update only once (For cron or systemd)
  -t string
        Type of DNS record (default "A")

Documentation

Overview

PBJelly A uh.... "simple" script to update Porkbun DNS records using their API.

Jump to

Keyboard shortcuts

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