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

CloudPress

Configuration

To use this provider, add an entry to creds.json with TYPE set to CLOUDPRESS along with the base URL of your CloudPress instance and a CloudPress API key.

CloudPress is a brand/instance-specific platform, so there is no single default API host. Set base_url to the host that serves your account's API (for example https://app.cloudpress.com).

Example:

creds.json
{
  "cloudpress": {
    "TYPE": "CLOUDPRESS",
    "base_url": "https://app.cloudpress.com",
    "api_token": "your-cloudpress-api-key"
  }
}

You can also use environment variables:

export CLOUDPRESS_BASE_URL=https://app.cloudpress.com
export CLOUDPRESS_API_TOKEN=XXXXXXXXX
creds.json
{
  "cloudpress": {
    "TYPE": "CLOUDPRESS",
    "base_url": "$CLOUDPRESS_BASE_URL",
    "api_token": "$CLOUDPRESS_API_TOKEN"
  }
}

Authentication

The provider authenticates with a CloudPress API key sent as a bearer token (Authorization: Bearer <api_token>). You can create an API key via POST /api/api_keys; the token value is only returned once, so store it immediately.

OAuth 2.1 access tokens are also accepted by CloudPress, but the OAuth flow is interactive (PKCE authorization_code) and not well suited to an unattended CLI, so an API key is recommended.

Trial accounts cannot use the CloudPress API.

Metadata

Some endpoints (including zone creation) require an account to be selected via the X-Auth-Account header. If you use a user API key and want DNSControl to create zones, set the optional account_id field:

Rate limiting

CloudPress rate-limits its API. DNSControl retries requests that get HTTP 429 (and 502/503/504) up to 6 times. It honors a Retry-After header given in seconds and otherwise uses exponential backoff: the wait starts at 1s and doubles on each retry, capped at 30s per wait. For large accounts you can tune this with the optional retry_base_delay and retry_max_delay fields (Go durations). The example below waits 10s, 20s, 40s, 80s, 160s and 320s:

Usage

An example configuration:

Activation

DNSControl uses the CloudPress DNS API to manage your DNS records. You will need to generate an API key to use this provider.

New domains

If a domain does not exist in your CloudPress account, DNSControl will automatically add it with the push command (an account_id may be required, see Metadata).

Caveats

  • CloudPress manages the apex NS records itself; they are exposed through GetNameservers() and are not managed as ordinary records. Dual-hosting with another provider is therefore not supported.

  • The provider currently manages the standard record types A, AAAA, CNAME, TXT, MX, NS, SRV, CAA and PTR. Other CloudPress-specific types (such as Redirect, Flatten, Pull Zone or Script records) are ignored by DNSControl and left untouched in the zone.

  • Provider Type

  • Provider API

  • DNS extensions

  • Service discovery

  • Security

  • DNSSEC

Last updated