# Porkbun

> Manage domain lookups and DNS records, and inspect nameservers, forwarding and transfers in Porkbun.

App · 15 actions. Web page: https://docs.lodol.com/docs/integrations/porkbun

## Actions

### Check domain availability

Check registration availability and pricing for a domain.

**Inputs**

- Domain (`domain`, text, required): Domain.

**Outputs**

- `data` (object): The response from Porkbun.

**Example output**

```json
{
  "data": {
    "limits": {
      "TTL": 1,
      "limit": 1,
      "naturalLanguage": "example",
      "used": 1
    },
    "response": {
      "additional": {
        "renewal": {
          "price": "example",
          "regularPrice": "example",
          "type": "example"
        },
        "transfer": {
          "price": "example",
          "regularPrice": "example",
          "type": "example"
        }
      },
      "aftermarketSearch": "example",
      "avail": "yes",
      "firstYearPromo": "yes",
      "idnLanguages": [],
      "inYourAccount": false,
      "minDuration": 1,
      "note": "example",
      "premium": "yes",
      "price": "example",
      "regularPrice": "example",
      "type": "example"
    },
    "status": "example",
    "ttlRemaining": 1
  }
}
```

### Create DNS record

Add a record to a managed domain’s DNS zone.

**Inputs**

- Domain (`domain`, text, required): Domain.
- Name (`name`, text): Subdomain for the record (e.g. 'www', '*' for wildcard, blank for root). Do not include the domain name itself.
- Type (`type`, text, required): DNS record type. One of: `A`, `AAAA`, `MX`, `CNAME`, `ALIAS`, `TXT`, `NS`, `SRV`, `TLSA`, `CAA`, and 6 more.
- Content (`content`, text, required): The record value
- Ttl (`ttl`, number): Time to live in seconds. Minimum is determined by account settings (typically 600). Defaults to the account minimum if omitted or 0.
- Prio (`prio`, number): Priority for MX and SRV records. Defaults to 0 if omitted.

**Outputs**

- `data` (object): The response from Porkbun.

**Example output**

```json
{
  "data": {
    "id": 1,
    "status": "example",
    "warnings": []
  }
}
```

### Delete DNS record

Remove a DNS record from a domain.

**Inputs**

- Domain (`domain`, text, required): Domain.
- Id (`id`, text, required): Numeric DNS record ID

**Outputs**

- `data` (object): The response from Porkbun.

**Example output**

```json
{
  "data": {
    "code": "example",
    "message": "example",
    "status": "SUCCESS",
    "warnings": []
  }
}
```

### Find DNS records

Find DNS records by type and subdomain.

**Inputs**

- Domain (`domain`, text, required): Domain.
- Type (`type`, text, required): DNS record type (A, AAAA, CNAME, MX, TXT, etc.). One of: `A`, `AAAA`, `ALIAS`, `CAA`, `CNAME`, `HTTPS`, `MX`, `NS`, `SRV`, `SSHFP`, and 3 more.
- Subdomain (`subdomain`, text, required): Subdomain portion only. Omit or leave empty for root domain records.

**Outputs**

- `data` (object): The response from Porkbun.

**Example output**

```json
{
  "data": {
    "cloudflare": "enabled",
    "records": [],
    "status": "example"
  }
}
```

### Get DNS record

Read a single DNS record by ID.

**Inputs**

- Domain (`domain`, text, required): Domain.
- Id (`id`, text, required): Numeric DNS record ID

**Outputs**

- `data` (object): The response from Porkbun.

**Example output**

```json
{
  "data": {
    "cloudflare": "enabled",
    "records": [],
    "status": "example"
  }
}
```

### Get domain

Read details about a domain in your account.

**Inputs**

- Domain (`domain`, text, required): Fully qualified domain name in the authenticated account.
- Include labels (`include_labels`, text): Return label metadata. Defaults to no. One of: `yes`, `no`.

**Outputs**

- `data` (object): The response from Porkbun.

**Example output**

```json
{
  "data": {
    "domain": {
      "apiAccess": 1,
      "autoRenew": 1,
      "createDate": "example",
      "domain": "example",
      "expireDate": "example",
      "notLocal": 1,
      "securityLock": 1,
      "status": "example",
      "tld": "example",
      "whoisPrivacy": 1
    },
    "status": "example"
  }
}
```

### Get transfer status

Check the transfer status for a domain.

**Inputs**

- Domain (`domain`, text, required): The domain name (e.g. `example.com`).

**Outputs**

- `data` (object): The response from Porkbun.

**Example output**

```json
{
  "data": {
    "status": "SUCCESS",
    "transfer": {
      "domain": "example",
      "orderId": 1,
      "status": "NEW",
      "statusDescription": "example",
      "transferDate": "example"
    }
  }
}
```

### List DNS records

Read records in the domain’s DNS zone.

**Inputs**

- Domain (`domain`, text, required): Domain.

**Outputs**

- `data` (object): The response from Porkbun.

**Example output**

```json
{
  "data": {
    "cloudflare": "enabled",
    "records": [],
    "status": "example"
  }
}
```

### List domain pricing

Look up current domain registration, renewal and transfer pricing.

**Inputs**

- Tld (`tld`, text): One TLD to price, e.g. `io`.

**Outputs**

- `data` (object): The response from Porkbun.

**Example output**

```json
{
  "data": {
    "pricing": {},
    "status": "example",
    "unsupported": []
  }
}
```

### List domains

Read up to 1,000 account domains from the supplied offset.

**Inputs**

- Start (`start`, number): Zero-based offset for pagination. Returns up to 1000 domains per call.
- Include labels (`include_labels`, text): Return label metadata for each domain. Defaults to no. One of: `yes`, `no`.
- Name contains (`name_contains`, text): Substring match against the full domain name. Case-insensitive.
- Expiring within days (`expiring_within_days`, number): Filter to domains expiring within this many days.
- Added after (`added_after`, date and time): Only domains added to this account at Porkbun (registered or transferred in) at or after this date or date-time, UTC. Compare `addedDate` in the response. To sync only new domains, pass the newest `addedDate` you have seen.
- Added before (`added_before`, date and time): Only domains added to this account at Porkbun before this date or date-time, UTC.
- Expires after (`expires_after`, date and time): Only domains expiring at or after this date or date-time, UTC.
- Expires before (`expires_before`, date and time): Only domains expiring before this date or date-time, UTC.
- Auto renew (`auto_renew`, text): Filter to domains with auto-renew on or off. One of: `yes`, `no`.
- Api access (`api_access`, text): Filter to domains opted in to API access. One of: `yes`, `no`.
- Sort name (`sort_name`, text): Field to sort by. Default: `expire_date` ascending. `added_date` sorts by `addedDate`. One of: `domain`, `tld`, `create_date` (Create date), `added_date` (Added date), `expire_date` (Expire date).
- Sort direction (`sort_direction`, text): Sort direction. Default: asc. One of: `asc`, `desc`.

**Outputs**

- `data` (object): The response from Porkbun.

**Example output**

```json
{
  "data": {
    "count": 1,
    "domains": [],
    "status": "example"
  }
}
```

### List glue records

Read registered glue records for a domain.

**Inputs**

- Domain (`domain`, text, required): Domain.

**Outputs**

- `data` (object): The response from Porkbun.

**Example output**

```json
{
  "data": {
    "glue": [],
    "hosts": [],
    "status": "example"
  }
}
```

### List nameservers

Read the nameservers for a domain.

**Inputs**

- Domain (`domain`, text, required): Domain.

**Outputs**

- `data` (object): The response from Porkbun.

**Example output**

```json
{
  "data": {
    "ns": [],
    "status": "example"
  }
}
```

### List transfers

Read active domain transfers.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Porkbun.

**Example output**

```json
{
  "data": {
    "status": "SUCCESS",
    "transfers": []
  }
}
```

### List URL forwards

Read forwarding rules for a domain.

**Inputs**

- Domain (`domain`, text, required): Domain.

**Outputs**

- `data` (object): The response from Porkbun.

**Example output**

```json
{
  "data": {
    "forwards": [],
    "status": "example"
  }
}
```

### Update DNS record

Set a DNS record’s name, type, content, TTL and priority.

**Inputs**

- Domain (`domain`, text, required): Domain.
- Id (`id`, text, required): Numeric DNS record ID
- Name (`name`, text): Subdomain for the record. Do not include the domain name itself.
- Type (`type`, text, required): DNS record type. One of: `A`, `AAAA`, `MX`, `CNAME`, `ALIAS`, `TXT`, `NS`, `SRV`, `TLSA`, `CAA`, and 6 more.
- Content (`content`, text, required): The record value
- Ttl (`ttl`, number): Time to live in seconds (optional)
- Prio (`prio`, number): Priority for MX/SRV records (optional)

**Outputs**

- `data` (object): The response from Porkbun.

**Example output**

```json
{
  "data": {
    "code": "example",
    "message": "example",
    "status": "SUCCESS",
    "warnings": []
  }
}
```
