> ## Documentation Index
> Fetch the complete documentation index at: https://docs.junojourney.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Custom domain: DNS and SSO setup

> Open Juno on your own address, such as learn.acme.com: add it in Juno, add its two DNS records, and see what stays the same for your identity provider and your people.

With a custom domain, your people open Juno on your own address, such as `learn.acme.com`, as well as on your Juno address, such as `acme.the-juno.com`. An admin adds the domain in Juno, and your IT team adds the two DNS records that Juno shows. Juno then gets the certificate and switches your address on by itself.

```mermaid theme={null}
flowchart TB
  subgraph DNS["Your DNS"]
    direction LR
    R1["Record 1<br/>_acme-challenge_#lt;id#gt;.learn"]
    R2["Record 2<br/>learn"]
  end
  R1 -- "certificate" --> V["Proves you own learn.acme.com"]
  R2 -- "traffic" --> J["Your Juno organization"]
  A["acme.the-juno.com<br/>your Juno address"] --> J
```

> [!NOTE]

## Choose your address

* **Use a subdomain**, such as `learn.acme.com`. You can't use your root domain (`acme.com`): DNS doesn't allow a CNAME record there.
* Each part between the dots uses letters, digits and hyphens only: no accented or non-Latin characters (also not written as `xn--` names), and no wildcard (`*.acme.com`).
* It can't start with `sso.`, and it can't be on a Juno domain.
* Your organization can have up to 5 custom domains at a time.

***

## Set up your custom domain

**1. Add the domain**

Select **Admin** > **Settings** > **Custom domains**, then **Add domain**. Enter your address, such as `learn.acme.com`, and select **Add domain**.

The domain shows in the list. Juno prepares Record 1, usually within a minute. Only an admin or owner of your organization can add a domain, from their own account.

![The Add a domain dialog in Admin, Settings, Custom domains, with learn.acme.com entered](https://mintcdn.com/juno-76d1c392/8EvBY59DDAVsRaBl/images/integrations/custom-domain-add.png?fit=max\&auto=format\&n=8EvBY59DDAVsRaBl\&q=85\&s=92bc1e37a2697bfea0a4fea1b13f2981)

**2. Add both records**

Open the domain's row. For **Record 1 · Certificate** and **Record 2 · Traffic**, copy the **Name** and the **Value**, and add a CNAME record for each at your DNS provider, in one change. Then select **Check now**.

If someone else manages your DNS, select **Copy message** under the records and paste it into an email or chat. The message holds both records and a link to **Custom domains**. It's always in English, so the record values stay exact.

Record 2 changes where your address goes. If your address opens another site today, add only Record 1 for now, and read [Move from another site](#move-from-another-site).

The status moves to **Getting certificate**. When the certificate is ready and Juno sees Record 2, it turns **Live**, usually within a few minutes.

![A domain waiting for Record 1: the card says what to do, both records show their name and value, and Copy message sits under them](https://mintcdn.com/juno-76d1c392/A5bfkq31bqbI4cT6/images/integrations/custom-domain-record-1.png?fit=max\&auto=format\&n=A5bfkq31bqbI4cT6\&q=85\&s=c13cbb37a5b57f7a5b5b0a6c0adb12e2)

**3. Sign in on your address**

Open `https://learn.acme.com` and sign in, the way your people do.

![Walkthrough: add the domain, add both records, Juno gets the certificate, and the domain is Live](https://mintcdn.com/juno-76d1c392/A5bfkq31bqbI4cT6/images/integrations/custom-domain-setup.gif?s=10f4f3cdf8f3dbb2c2177b93f10792c8)

From Add domain to Live: both records, then the certificate

> [!TIP]
>
> After you change a record, select **Check now**: Juno looks again within about two minutes. Without it, Juno keeps looking by itself, less often as time goes by, and at least every 4 hours.

> [!WARNING]
>
> Finish the setup within 7 days of adding the domain. After that, the domain shows **Expired**: add it again to start over.

***

## Statuses

Each domain shows one status. Open its row to see its DNS records and a card that says what to do next. **Last checked** says when Juno last looked at the domain's DNS records.

![The Custom domains list with a Live domain, a domain getting its certificate, and a domain that needs a DNS change, with its card](https://mintcdn.com/juno-76d1c392/A5bfkq31bqbI4cT6/images/integrations/custom-domain-statuses.png?fit=max\&auto=format\&n=A5bfkq31bqbI4cT6\&q=85\&s=84d8a49e550af19b2bc2109e8fcd2cdb)

| Status | What it means | What to do |
| - | - | - |
| **Waiting for Record 1** | Juno waits for the certificate record | Add Record 1, then select **Check now** |
| **Getting certificate** | Juno found Record 1 and is getting the certificate | Nothing. It usually takes a few minutes |
| **Waiting for Record 2** | The certificate is ready, and Juno doesn't see Record 2 yet | Add Record 2, then select **Check now** |
| **Live** | Your address opens your Juno organization | Nothing. Keep both records |
| **Needs a DNS change** | A record is missing, has changed, or goes through a proxy. Your address doesn't open your organization until it's fixed | Make the change the card asks for, then select **Check now** |
| **Can't start yet** | The first checks failed, for example a CAA record blocks the certificate | Do what the card says |
| **Certificate failed** | Juno couldn't get the certificate after several tries | Check Record 1, the proxy and your CAA records, then select **Check now** to try again. If it fails again, contact your Customer Success Manager or [support@junojourney.com](mailto:support@junojourney.com) |
| **Expired** | The setup didn't finish within 7 days | Add the domain again |
| **Removing**, **Removed** | You removed the domain | Delete both DNS records at your DNS provider |

Juno checks a live domain every 15 minutes. If a record changes later, the status turns **Needs a DNS change**. Juno doesn't send an email about it, so check the list after any change to your DNS.

***

## The DNS records

| | Record 1 · Certificate | Record 2 · Traffic |
| - | - | - |
| **Type** | CNAME | CNAME |
| **Name** | Starts with `_acme-challenge_`. Copy it from the row | Your address, such as `learn`. Copy it from the row |
| **Value** | Copy it from the row | Copy it from the row |
| **What it's for** | Proves you own the address, so Juno can get its certificate and renew it. Keep it as long as you use the address | Sends people who open your address to your Juno organization |

![Both DNS records of a domain, each with its Type, Name, Full name, Value and Proxy, and Copy message under them](https://mintcdn.com/juno-76d1c392/A5bfkq31bqbI4cT6/images/integrations/custom-domain-records.png?fit=max\&auto=format\&n=A5bfkq31bqbI4cT6\&q=85\&s=e2a43bf42268e5e81b87309ea3cc356f)

> [!TIP]
>
> **Name** is the part before your domain, which most DNS providers ask for. If yours asks for the whole name, copy **Full name** instead.

* **CNAME records only.** Never an A or AAAA record for your address: Juno switches your address on only when Record 2 is the CNAME on your row. If your address has an A or AAAA record today, delete it when you add Record 2.
* **DNS only.** If your DNS provider can proxy traffic (for example, the orange cloud in Cloudflare), turn the proxy off for both records ("DNS only"). A proxied record doesn't show the CNAME, so Juno can't switch your address on. When your domain is on Cloudflare, each record on the row shows **Proxy: Off (DNS only)** as a reminder.
* **CAA records.** If `acme.com` or `learn.acme.com` has CAA records, add one for Google Trust Services, the certificate authority Juno uses, next to the ones you have. Juno checks this first: when a CAA record blocks it, the status is **Can't start yet** and the card shows the exact record to add (for example `acme.com. CAA 0 issue "pki.goog"`). If you have no CAA records, there's nothing to add.
* DNS changes can take up to 30 minutes to show.

***

## Emails

Juno emails every admin and owner of your organization at each step:

| When | Subject | What's in it |
| - | - | - |
| You add the domain | "The custom domain learn.acme.com was added" | Who added it |
| Record 1 is ready | "Add DNS records to set up learn.acme.com" | Both records |
| The certificate is ready, and Juno doesn't see Record 2 yet | "Certificate ready: point learn.acme.com to Juno" | Record 2 |
| The domain goes live | "The custom domain learn.acme.com is live" | |
| You remove a live domain | "The custom domain learn.acme.com was removed" | |

If your organization didn't ask for a domain in these emails, remove it in **Custom domains** and tell your Customer Success Manager.

***

## Move from another site

If your address opens another site today, such as your previous learning platform, set everything up first and switch when you're ready:

1. Add the domain and Record 1, but not Record 2 yet. Record 1 has its own name, so your address keeps opening the other site.
2. Wait for **Waiting for Record 2**. The certificate is ready, and nothing has changed for your people yet.
3. A day before the switch, lower the TTL of your address's current DNS record, for example to 5 minutes. Then the change reaches everyone faster.
4. At the time you pick, replace your address's current record with Record 2, and delete any A or AAAA record for it. Then select **Check now**.

Your address opens Juno once public DNS shows Record 2, usually within minutes. Until then, your address doesn't open your Juno organization. Plan the switch within 7 days of adding the domain.

### Keep old links working

Links to your previous site still sit in emails, bookmarks and search results. To send each one to its new Juno page, select **Old links** on the domain's row and upload a .csv file:

* One row per old link: the old link (such as `/hubspot-crm`), the new Juno page on the same domain, and an optional code, `301` (permanent, the default) or `302` (temporary).
* Up to 5,000 rows, in a file under 5 MB. Juno checks every row and saves nothing until every row passes.
* When no row matches a link exactly, Juno uses the row for its first part, so one row per course covers its lesson links.
* Old links work once the domain is **Live**, within about a minute of saving.

Your Customer Success Manager can upload the file for you.

***

## Using both addresses

* **Your Juno address keeps working.** Both addresses open the same organization, with the same people, learning and settings.
* **Sign-in is per address.** Signing in on one address doesn't sign you in on the other. People who use both sign in on each.
* **Emails keep your Juno address.** Every link in emails from Juno points to your Juno address in this version.
* **Learning records keep one identity.** xAPI statements keep the same account home page for each learner (your Juno address), whichever address they use.

***

## How people sign in on your address

Every way of signing in works on your address. Where people end up depends on how they sign in:

| How people sign in | Where they end up |
| - | - |
| SSO with your identity provider | Back on your address, on the page they asked for. See [Sign-in with your identity provider](#sign-in-with-your-identity-provider) |
| Google, LinkedIn, phone, or email and password | Juno's sign-in page opens on a Juno address. After sign-in, people come back to your address, on the page they asked for |
| Your own login page ([Portal SSO](https://docs.junojourney.com/integrations/portal-sso.md)) | Back on your address, when they started on it |
| A sign-in link from an email | Your Juno address, in this version |
| Signing up and confirming their email | Your Juno address, for that first sign-in. Later sign-ins started on your address stay there |

If your organization uses SSO and also shows Google or a sign-in link on its SSO sign-in page, people who choose one of those land on your Juno address in this version.

***

## Sign-in with your identity provider

Nothing changes in your identity provider. The **Entity ID** and **Reply URL (ACS)** it has today stay exactly as they are. The Reply URL is on a Juno address (your Juno address, or `sso.the-juno.com` for a provider added on the **SSO Configuration** page) and never moves to your own address. Adding, changing or removing a custom domain never needs a change in your identity provider.

People can start signing in on either address. Your identity provider sends them back to Juno's address, as it does today, and Juno then brings them back to the address they started on.

### After sign-in, and app tiles

* **After sign-in:** people come back to the address they started on, already signed in, on the page they asked for. A sign-in that starts on `learn.acme.com` ends on `learn.acme.com`.
* **During sign-in:** for a moment, the browser's address bar shows your identity provider and then a Juno address. That's expected.
* **App tiles:** people who open Juno from a tile in your identity provider's portal (such as the Okta dashboard or Microsoft My Apps) land on your Juno address. A tile starts the sign-in at your identity provider, not on your own address. If you want a tile that opens your own address, tell your Customer Success Manager: we help you add a tile that starts the sign-in on your address.

***

## HTTPS only

> [!WARNING]
>
> Browsers that visit your address use only HTTPS for it, and for every address under it (such as `test.learn.acme.com`), for one year after their last visit, even after you stop using the address with Juno. The rest of `acme.com` isn't affected. Don't plan HTTP-only sites under your custom domain.

***

## Remove a custom domain

1. On the domain's row, select **⋯** > **Remove**, then **Remove domain**. Juno stops serving your address right away, so people need your Juno address.
2. Delete both DNS records at your DNS provider.

Every admin and owner gets an email when you remove a live domain. Its old links stop too. Your Juno address keeps working throughout, and you can add the same domain again later.

Juno's team set up each domain marked **Managed by Juno**. To change or remove one, contact your Customer Success Manager or [support@junojourney.com](mailto:support@junojourney.com).

***

## Troubleshooting

| What you see | What to do |
| - | - |
| "This domain is already in use." or "This domain isn't available right now." | Another organization uses or used this address. Contact your Customer Success Manager or [support@junojourney.com](mailto:support@junojourney.com) |
| "Your organization can't add custom domains yet." | Contact your Customer Success Manager or [support@junojourney.com](mailto:support@junojourney.com) |
| "You've reached the limit of custom domains." | Your organization can have up to 5 at a time. Remove one you don't use, or contact your Customer Success Manager |
| "Only an admin of your organization can add a custom domain, and only from their own account." | An admin or owner adds it, signed in to Juno as themselves |
| The status stays **Waiting for Record 1** or **Waiting for Record 2** | Check that the record's name and value match the row and that the proxy is off. Then select **Check now**. DNS changes can take up to 30 minutes |
| **Getting certificate** for more than an hour | Check that Record 1 is still in place and your CAA records. Then contact your Customer Success Manager or [support@junojourney.com](mailto:support@junojourney.com) |
| **Needs a DNS change** | Do what the card on the row asks: turn the proxy off, delete an A or AAAA record, or fix Record 2's value. Then select **Check now** |
| People sign in on your address and land on your Juno address | Check that they started on your address, and not from an app tile or a link in an email from Juno. If they did, tell your Customer Success Manager or [support@junojourney.com](mailto:support@junojourney.com) |
| Sign-in on your address ends on "We couldn't sign you in" | The browser must accept cookies for your address. Try again; if it keeps happening, send us the reference shown on that page |

> [!NOTE]
>
> Contact us at [support@junojourney.com](mailto:support@junojourney.com) or open **Support** from your profile menu in Juno.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.