1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

PORKBUN: New provider (#1819)

Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
imlonghao
2022-11-27 00:36:17 +08:00
committed by GitHub
parent f17600a21c
commit d90ca157e4
9 changed files with 528 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
---
name: Porkbun
title: Porkbun Provider
layout: default
jsId: PORKBUN
---
# Porkbun Provider
## 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](https://kb.porkbun.com/article/190-getting-started-with-the-porkbun-api).
Example:
```json
{
"porkbun": {
"TYPE": "PORKBUN",
"api_key": "your-porkbun-api-key",
"secret_key": "your-porkbun-secret-key",
}
}
```
## Metadata
This provider does not recognize any special metadata fields unique to Porkbun.
## Usage
An example `dnsconfig.js` configuration:
```js
var REG_NONE = NewRegistrar("none");
var DSP_PORKBUN = NewDnsProvider("porkbun");
D("example.tld", REG_NONE, DnsProvider(DSP_PORKBUN),
A("test", "1.2.3.4")
);
```