Skip to content

Possible to add 2 CNAMEs on the same host #12

@pawel-kow

Description

@pawel-kow

See this template:
Domain-Connect/Templates@fd75de0

{
  "providerId": "leed.ai",
  "providerName": "Leed, Inc.",
  "serviceId": "generative-cms",
  "serviceName": "Leed Generative CMS",
  "version": 1,
  "logoUrl": "https://leed.ai/static/images/logo/leed-light.svg",
  "description": "Configure your company domain to run on Leed",
  "syncBlock": false,
  "syncPubKeyDomain": "app.leed.ai",
  "syncRedirectDomain": "app.leed.ai",
  "hostRequired": true,
  "records": [
    {
      "type": "CNAME",
      "groupId": "website",
      "host": "@",
      "pointsTo": "%PUBLIC_PAGES_PROJECT%.pages.dev",
      "ttl": 1
    },
    {
      "type": "CNAME",
      "groupId": "website",
      "host": "%PREVIEW_SUBDOMAIN%",
      "pointsTo": "%PREVIEW_PAGES_PROJECT%.pages.dev",
      "ttl": 1
    },
    {
      "type": "CNAME",
      "groupId": "mail",
      "host": "%DKIM_ONE%._domainkey",
      "pointsTo": "%DKIM_ONE%.dkim.amazonses.com",
      "ttl": 1
    },
    {
      "type": "CNAME",
      "groupId": "mail",
      "host": "%DKIM_TWO%._domainkey",
      "pointsTo": "%DKIM_TWO%.dkim.amazonses.com",
      "ttl": 1
    },
    {
      "type": "CNAME",
      "groupId": "mail",
      "host": "%DKIM_THREE%._domainkey",
      "pointsTo": "%DKIM_THREE%.dkim.amazonses.com",
      "ttl": 1
    },
    {
      "type": "MX",
      "groupId": "mail",
      "host": "leed-mail",
      "pointsTo": "feedback-smtp.us-east-2.amazonses.com",
      "priority": 10,
      "ttl": 1
    },
    {
      "type": "SPFM",
      "groupId": "mail",
      "host": "leed-mail",
      "spfRules": "include:amazonses.com",
      "ttl": 1
    }
  ],
  "testData": {
    "bug": {
      "variables": {
        "domain": "example.com",
        "host": "test",
        "group": [
          "website"
        ],
        "PUBLIC_PAGES_PROJECT": "proj",
        "PREVIEW_PAGES_PROJECT": "projprev"
      },
      "results": [
        {
          "type": "CNAME",
          "name": "test",
          "ttl": 1,
          "data": "proj.pages.dev"
        },
        {
          "type": "CNAME",
          "name": "test",
          "ttl": 1,
          "data": "projprev.pages.dev"
        }
      ]
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions