Global DNS Providers

OpenResty Edge can use an external DNS provider’s API to complete ACME DNS-01 domain ownership validation. After a DNS provider is configured as a global resource, you can reference it when issuing certificates through Let’s Encrypt or another ACME certificate issuer.

Supported DNS Providers

The following provider types are currently supported:

  • Aliyun DNS
  • DNS Pod
  • Cloudflare
  • GoDaddy

Creating a DNS Provider

  1. Log in to the OpenResty Edge Admin console.
  2. Open DNS Providers in Global Config.
  3. Click New DNS Provider.
  4. Enter a recognizable name and select the DNS provider type.
  5. Enter the provider credentials requested on the page, then save the configuration.

Creating a DNS Provider

In Provider, select one of the DNS provider types currently supported by OpenResty Edge.

Selecting a DNS Provider Type

The required credentials vary by DNS provider. Make sure the credentials can create and delete records in the DNS zones for the certificate domains.

Name identifies the DNS provider when you select it during certificate issuance. Secret and token fields are hidden by default and should only be revealed temporarily with the eye icon in a secure environment.

Aliyun DNS

After selecting Aliyun DNS, enter the Access Key ID and Access Key Secret for your Alibaba Cloud account. The Access Key must have permission to manage DNS records for the target domain.

Configuring an Aliyun DNS Provider

Cloudflare

After selecting Cloudflare, enter an API Token. The token must have permission to edit DNS records in the target zone.

Configuring a Cloudflare DNS Provider

DNSPod

After selecting DNS Pod, enter the Secret ID and Secret Key for the Tencent Cloud API credentials. The credentials must have permission to manage DNS records for the target domain.

Configuring a DNSPod Provider

GoDaddy

After selecting GoDaddy, enter the API Key and API Secret. The credentials must have permission to manage DNS records for the target domain.

Configuring a GoDaddy DNS Provider

Using a DNS Provider for Certificate Issuance

  1. Create a Let’s Encrypt or Generic ACME certificate.
  2. Select the global DNS provider from DNS Provider.
  3. Enter the certificate domains and save the certificate.

OpenResty Edge uses the selected provider’s API to create the _acme-challenge TXT record required for DNS-01 validation. During automatic certificate renewal, the system uses the same DNS provider to complete validation again.

For applicable scenarios and issuance requirements, see Using an External DNS Provider for DNS-01 Validation.

Important Notes

  • Grant the credentials only the minimum permissions required to manage DNS records.
  • Keep the credentials valid. Otherwise, certificate issuance or automatic renewal may fail.
  • Make sure OpenResty Edge Admin can access the APIs of the DNS provider and certificate issuer.
  • The selected DNS provider must host the authoritative DNS zone for the certificate domain.