---
updatedAt: 2026-06-23T15:29:35.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/app-platform/llms.txt
---

# DNS setup

The [Container Images](https://techdocs.akamai.com/app-platform/docs/container-images) feature is *not* supported without DNS configured. Install with DNS to use all features.

# Linode DNS Manager

If you want to learn about how to use Linode DNS Manager read the following tutorial: [Get started with DNS Manager](https://techdocs.akamai.com/cloud-computing/docs/getting-started-with-dns-manager).

When you create a domain in Linode, make sure to set the TTL of the SOA Record to 30 seconds:

1. Click on your domain.

2. Click on the tree dots on the right of the SOA Record and click `edit`.

3. Change the default TTL to `30 seconds`.

4. Click `Save`.

Create a new Personal Access Token with Read/Write access for Domains:

1. Go to your profile on the top right.

2. Click on `API Tokens`.

3. Click on `Create A Personal Access Token`.

4. Add a `Label`.

5. Select the desired `Expiry`.

6. Select `No Access` for all.

7. Select `Read/Write` for `Domains`.

8. Click `Create Token`.

9. Copy your Personal Access Token.

10. Set environment variable for the token:

```bash
LINODE_TOKEN="<your-personal-access-token>"
```

11. Create the values.yaml file

* Add the DNS configuration created in the previous step, the `domainSuffix`, `domainFilters` and `email` to the `values.yaml` file:

```bash
tee values.yaml<<EOF
cluster:
  name: $CLUSTER_NAME
  provider: custom
  domainSuffix: <your-domain>
otomi:
  hasExternalDNS: true
dns:
  domainFilters: 
    - <your-domain>
  provider:
    linode:
      apiToken: $LINODE_TOKEN
apps:
  cert-manager:
    issuer: letsencrypt
    stage: production
    email: admin@<your-domain>
EOF
```

# Akamai EdgeDNS

Follow these steps to use Akamai EdgeDNS, provided that you have a registered domain.

> Note that the DNS entries can also be created using a [CLI](https://github.com/akamai/cli-dns); however, creating the client and credentials requires to use the UI (or the API directly).

1. (Optional) Set up a group to manage the domain. From the Control Center menu, click **Administration > Identity & access > [Groups tab](https://control.akamai.com/apps/identity-management/#/tabs/groups)**.

2. (Once for all domains) It is highly recommended to have a role restricted to DNS administration. If not already present, go to the [Roles tab](https://control.akamai.com/apps/identity-management/#/tabs/roles) and create a role with permissions "Enhanced DNS - All privileges (add/edit/view)".

3. Add a new [zone](https://control.akamai.com/apps/authoritative-dns/#/zones). From the Control Center menu, click **Security > Infrastructure security > Edge DNS**.

   * Click on "Add zone" (top right).
   * (Optional) Select the group from step 1.
   * Set "Zone type": Primary
   * Enter the "Zone names", e.g. akamai.example.com
   * Click "Create zone"

4. Select "Add record sets" to create the default SOA and NS records.

5. Click "Review change list", then "Activate zone"

6. Go to the "Users and API Clients" tab in [Akamai Control Center: Administration > Identity & access](https://control.akamai.com/apps/identity-management/#/tabs/users/createClient), then select "Create API client"

7. Select Service account > Set API client options

8. Set name, description, and any other fields as needed.

9. "Select APIs": First "Reset API selection"; only set "DNS—Zone Record Management" to "READ-WRITE"; then "Submit"

10. "Select groups": For the group that was assigned to the domain in step 3, select the role from step 2 (or any other suitable existing role).

11. "Compare user permissions" if needed and check the box "I reviewed and acknowledge...", then "Create API client".

12. In the new API client details, go to the "Credentials" section and click "Create credential". The values generated for `client_secret` in this step will be visible only once. Either download or copy them directly into your values file. The values file should look similar to this, credentials to be replaced below:

```yaml
cluster:
  name: $CLUSTER_NAME
  provider: custom
  domainSuffix: akamai.example.com
otomi:
  hasExternalDNS: true
dns:
  domainFilters:
    - akamai.example.com
  provider:
    akamai:
      host: <host>
      accessToken: <access_token>
      clientToken: <client_token>
      clientSecret: <client_secret>
apps:
  cert-manager:
    issuer: letsencrypt
    stage: production
    email: admin@example.com
```

# Third-party DNS providers

> 🚧 Instructions for third-party DNS providers may vary
>
> The following section includes instructions to configure DNS on third-party DNS providers for manual installations of App Platform. The actual workflow may differ. We recommended also consulting the official documentation for these services.

## AWS Route53

Follow these steps to use AWS Route53:

1. Install [AWS CLI](https://aws.amazon.com/cli/)

2. Register a domain and retrieve the Hosted zone ID

3. Create a `dns-policy.json` file for the policy and add the Zone ID:

   ```json
   {
       "Version": "2012-10-17",
       "Statement": [
           {
               "Effect": "Allow",
               "Action": "route53:GetChange",
               "Resource": "arn:aws:route53:::change/*"
           },
           {
               "Effect": "Allow",
               "Action": [
                   "route53:ChangeResourceRecordSets",
                   "route53:ListResourceRecordSets"
               ],
               "Resource": [
                   "arn:aws:route53:::hostedzone/<your-zone-id>"
               ]
           },
           {
               "Effect": "Allow",
               "Action": [
                   "route53:ListHostedZonesByName",
                   "route53:ListHostedZones"
               ],
               "Resource": [
                   "*"
               ]
           }
       ]
   }
   ```

4. Create the policy:

   ```bash
   aws iam create-policy --policy-name "apl-dns" --policy-document file://dns-policy.json
   ```

5. export the policy ARN:

   ```bash
   export POLICY_ARN=$(aws iam list-policies --query 'Policies[?PolicyName==`<policy-name>`].Arn' --output text)
   ```

6. Create a user:

   ```bash
   USER=user-name
   aws iam create-user --user-name $USER
   ```

7. Attach the user to the policy:

   ```bash
   aws iam attach-user-policy --user-name $USER --policy-arn $POLICY_ARN
   ```

8. Create the `access-key`:

   ```bash
   ACCESS_KEY=$(aws iam create-access-key --user-name $USER)
   ```

9. Get the `secret-access-id` and `secret-access-key`:

   ```bash
   ACCESS_KEY_ID=$(echo $ACCESS_KEY | jq -r '.AccessKey.AccessKeyId')
   ACCESS_KEY_SECRET=$(echo $ACCESS_KEY | jq -r '.AccessKey.SecretAccessKey')
   ```

10. Create the values.yaml file

    * Get the API server endpoint. You can find the API server endpoint in the Details section of the cluster in the AWS console.

    * Add the DNS configuration created in the previous step, the API server endpoint, the `domainSuffix`, `domainFilters`, `region` and `email` to the `values.yaml` file:

    ```bash
    tee values.yaml<<EOF
    cluster:
    name: $CLUSTER_NAME
    provider: custom
    region: your-region
    apiName: api-server-endpoint
    domainSuffix: your-domain.com
    otomi:
    hasExternalDNS: true
    dns:
    domainFilters:
        - your-domain.com
    provider:
        aws:
        credentials:
            secretKey: $ACCESS_KEY_ID
            accessKey: $ACCESS_KEY_SECRET
        region: your-region
    apps:
    cert-manager:
        issuer: letsencrypt
        stage: production
        email: admin@your-domain.com
    EOF
    ```

## Azure DNS

Follow these steps to use Azure DNS:

1. Create a resource group:

   ```
   $ az group create --name "MyDnsResourceGroup" --location $LOCATION
   ```

2. Create a Azure DNS zone for example.com:

   ```
   $ az network dns zone create --resource-group "MyDnsResourceGroup" --name "example.com"
   ```

   Substitute a domain you own for example.com if desired.

   If using your own domain that was registered with a third-party domain registrar, you should point your domain's name servers to the values in the `nameServers` field from the JSON data returned by the `az network dns zone create` command. Please consult your registrar's documentation on how to do that.

3. Create a Service Principal

   Create a Service Principal with a minimum access level of DNS Zone Contributor or Contributor to the DNS zone(s) and Reader to the resource group containing the Azure DNS zone(s).

   ```bash
   $ DNS_NEW_SP_NAME="ExternalDnsServicePrincipal" # name of the service principal
   $ AZURE_DNS_ZONE_RESOURCE_GROUP="MyDnsResourceGroup" # name of resource group where dns zone is hosted
   $ AZURE_DNS_ZONE="example.com" # DNS zone name like example.com or sub.example.com

   # Create the service principal
   $ DNS_SP=$(az ad sp create-for-rbac --name $DNS_NEW_SP_NAME)
   $ DNS_SP_APP_ID=$(echo $DNS_SP | jq -r '.appId')
   $ DNS_SP_PASSWORD=$(echo $DNS_SP | jq -r '.password')
   ```

4. Grant access to Azure DNS zone for the service principal.

   ```bash
   # fetch DNS id used to grant access to the service principal
   DNS_ID=$(az network dns zone show --name $AZURE_DNS_ZONE \
   --resource-group $AZURE_DNS_ZONE_RESOURCE_GROUP --query "id" --output tsv)

   # 1. as a reader to the resource group
   $ az role assignment create --role "Reader" --assignee $DNS_SP_APP_ID --scope $DNS_ID

   # 2. as a contributor to DNS Zone itself
   $ az role assignment create --role "Contributor" --assignee $DNS_SP_APP_ID --scope $DNS_ID
   ```

5. Create the values.yaml file

   ```bash
   tee values.yaml<<EOF
   cluster:
   name: $CLUSTER_NAME
   provider: custom
   domainSuffix: azure.example.com
   otomi:
   hasExternalDNS: true
   dns:
   domainFilters:
       - example.com
   provider:
       azure:
       resourceGroup: $AZURE_DNS_ZONE_RESOURCE_GROUP
       aadClientId: $DNS_SP_APP_ID
       aadClientSecret: $DNS_SP_PASSWORD
       tenantId: "$(az account show --query tenantId -o tsv)"
       subscriptionId: "$(az account show --query id -o tsv)"
   apps:
   cert-manager:
       issuer: letsencrypt
       stage: production
       email: admin@example.com
   EOF
   ```

## Google Cloud Platform DNS

Follow these steps to use Google Cloud DNS:

1. Create a DNS zone which will contain the managed DNS records. If using your own domain that was registered with a third-party domain registrar, you should point your domain's name servers to the values under the `nameServers` key. Please consult your registrar's documentation on how to do that.  This tutorial will use example domain of  `example.com`.

   ```bash
   gcloud dns managed-zones create "example-com" --dns-name "example.com." \
   --description "Automatically managed zone by kubernetes.io/external-dns"
   ```

2. Make a note of the nameservers that were assigned to your new zone.

   ```bash
   gcloud dns record-sets list \
       --zone "example-com" --name "example.com." --type NS
   ```

3. Create a Google Service Account for use with static credentials

   In this scenario, a new GSA (Google Service Account) is created that has access to the CloudDNS zone.  The credentials for this GSA are saved and installed as a Kubernetes secret that will be used by ExternalDNS. This allows only containers that have access to the secret, such as ExternalDNS to update records on the Cloud DNS Zone.

   ```bash
   DNS_SA_NAME="external-dns-sa"
   DNS_SA_EMAIL="$DNS_SA_NAME@${GKE_PROJECT_ID}.iam.gserviceaccount.com"

   # create GSA used to access the Cloud DNS zone
   gcloud iam service-accounts create $DNS_SA_NAME --display-name $DNS_SA_NAME

   # assign google service account to dns.admin role in cloud-dns project
   gcloud projects add-iam-policy-binding $DNS_PROJECT_ID \
   --member serviceAccount:$DNS_SA_EMAIL --role "roles/dns.admin"
   ```

4. Create credentials

   Generate static credentials from the ExternalDNS GSA:

   ```bash
   # download static credentials
   gcloud iam service-accounts keys create /local/path/to/credentials.json \
   --iam-account $DNS_SA_EMAIL
   ```

5. Get the contents of the `credentials.json`. Note that you don't need to create a Kubernetes secret.

   ```bash
   cat /local/path/to/credentials.json
   ```

   ```json
   {
       "type": "service_account",
       "project_id": "xxx",
       "private_key_id": "xxx",
       "private_key": xxx,
       "client_email": "external-dns-sa@apl.iam.gserviceaccount.com",
       "client_id": "000000000000",
       "auth_uri": "https://accounts.google.com/o/oauth2/auth",
       "token_uri": "https://oauth2.googleapis.com/token",
       "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
       "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/xxxx.iam.gserviceaccount.com"
   }
   ```

6. Create the values.yaml file

   ```bash
   tee values.yaml<<EOF
   cluster:
   name: $CLUSTER_NAME
   provider: google
   domainSuffix: gcp.example.com
   otomi:
   hasExternalDNS: true
   dns:
   domainFilters:
       - example.com
   provider:
       google:
       serviceAccountKey: |
           {
               "type": "service_account",
               "project_id": "xxx",
               "private_key_id": "xxx",
               "private_key": xxx,
               "client_email": "external-dns-sa@apl.iam.gserviceaccount.com",
               "client_id": "000000000000",
               "auth_uri": "https://accounts.google.com/o/oauth2/auth",
               "token_uri": "https://oauth2.googleapis.com/token",
               "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
               "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/xxxx.iam.gserviceaccount.com"
           }
       project: $DNS_PROJECT_ID
   apps:
   cert-manager:
       issuer: letsencrypt
       stage: production
       email: admin@example.com
   EOF
   ```

## DigitalOcean DNS

If you want to learn about how to use DigitalOcean's DNS service read the following tutorial series:

[An Introduction to Managing DNS](https://www.digitalocean.com/community/tutorial_series/an-introduction-to-managing-dns), and specifically [How To Set Up a Host Name with DigitalOcean DNS](https://www.digitalocean.com/community/tutorials/how-to-set-up-a-host-name-with-digitalocean)

1. Create a new DNS zone where you want to create your records in. Let's use `example.com` as an example here.

2. Generate a new personal token by going to [the API settings](https://cloud.digitalocean.com/settings/api/tokens) or follow [How To Use the DigitalOcean API v2](https://www.digitalocean.com/community/tutorials/how-to-use-the-digitalocean-api-v2) if you need more information. Provide a name for the token and choose read and write access.

   ```bash
   DO_TOKEN="<your-token>"
   ```

3. Create the values.yaml file

   ```yaml
   tee values.yaml<<EOF
   cluster:
   name: $CLUSTER_NAME
   provider: custom
   domainSuffix: do.example.com
   otomi:
   hasExternalDNS: true
   dns:
   domainFilters:
       - example.com
   provider:
       digitalocean:
       apiToken: $DO_TOKEN
   apps:
   cert-manager:
       issuer: letsencrypt
       stage: production
       email: admin@example.com
   EOF
   ```

## Cloudflare DNS

1. Creating a Cloudflare DNS zone. We highly recommend to read this tutorial if you haven't used Cloudflare before: [Create a Cloudflare account and add a website](https://support.cloudflare.com/hc/en-us/articles/201720164-Step-2-Create-a-Cloudflare-account-and-add-a-website)

2. Creating Cloudflare Credentials. Snippet from [Cloudflare - Getting Started](https://api.cloudflare.com/#getting-started-endpoints):

   > Cloudflare's API exposes the entire Cloudflare infrastructure via a standardized programmatic interface. Using Cloudflare's API, you can do just about anything you can do on cloudflare.com via the customer dashboard.
   >
   > The Cloudflare API is a RESTful API based on HTTPS requests and JSON responses. If you are registered with Cloudflare, you can obtain your API key from the bottom of the "My Account" page, found here: [Go to My account](https://dash.cloudflare.com/profile).

   When using API Token authentication, the token should be granted Zone `Read`, DNS `Edit` privileges, and access to `All zones`.

   If you would like to further restrict the API permissions to a specific zone (or zones), you also need to use the `--zone-id-filter` so that the underlying API requests only access the zones that you explicitly specify, as opposed to accessing all zones.

   Set the `CF_API_TOKEN` environment variable:

   ```
   CF_API_TOKEN="Your Cloudflare API Token"
   ```

3. Create the values.yaml file

   ```yaml
   cluster:
   name: otomi
   provider: custom
   domainSuffix: linode.example.com
   otomi:
   hasExternalDNS: true
   dns:
   domainFilters:
       - example.com
   provider:
       cloudflare:
       apiToken: $CF_API_TOKEN
       proxied: false
   apps:
   cert-manager:
       issuer: letsencrypt
       stage: production
       email: admin@example.com
   ```

# Sibling pages

* [OIDC setup through Azure Entra ID](https://techdocs.akamai.com/app-platform/docs/oidc.md)
* [Install with entrypoint](https://techdocs.akamai.com/app-platform/docs/entrypoint.md)
* [BYO wildcard certificate](https://techdocs.akamai.com/app-platform/docs/byo-wildcard-cert.md)
* [BYO Git](https://techdocs.akamai.com/app-platform/docs/byo-git.md)