For the complete documentation index, see llms.txt. This page is also available as Markdown.

Porkbun

Configuration

To use this provider, add an entry to creds.json with TYPE set to PORKBUN along with your api_key and secret_key. More info about authentication can be found in Getting started with the Porkbun API.

Example:

creds.json
{
  "porkbun": {
    "TYPE": "PORKBUN",
    "api_key": "your-porkbun-api-key",
    "secret_key": "your-porkbun-secret-key"
  }
}

Porkbun has quite strict API limits. If you experience errors with this provider (common when you have many domains), you can set one or both of max_attempts and max_duration in the credentials configuration.

Example:

creds.json
{
  "porkbun": {
    "TYPE": "PORKBUN",
    "api_key": "your-porkbun-api-key",
    "secret_key": "your-porkbun-secret-key",
    "max_attempts": "10",
    "max_duration": "5m"
  }
}

The default for max_attempts is 5. There is no maximum duration by default, instead the provider will perform exponential backoff between 1 and 10 seconds, until max_attempts is reached. To retry indefinitely until max_duration is reached, set max_attempts to any value below 1.

Metadata

This provider does not recognize any special metadata fields unique to Porkbun.

Usage

An example configuration: (DNS hosted with Porkbun):

An example configuration: (Registrar only. DNS hosted elsewhere)

URL Forwarding

Porkbun supports URL forwarding (redirects) using the URL and URL301 record types:

By default, URL forwarding includes wildcard subdomains but does not include the URI path in redirection. You can customize this behavior using metadata:

NOTE: The legacy PORKBUN_URLFWD record type is deprecated. Please use URL or URL301 instead.

Feature Summary

Last updated