# Add your own domain

> Connect your own domain to an AirLift app: add it, create the DNS record AirLift shows, and HTTPS is set up automatically.

Source: https://docs.phluit.com/products/airlift/custom-domains/

Every app has a free address with HTTPS that always works. You can add your own domains too; how many depends on your [plan](/products/airlift/plans-and-prices/).

## Add a domain

1.  Open your app and go to **Settings → Domains**.
2.  Enter the domain, for example `www.example.com`, and click **Add domain**. Tick **Primary** if it should be the app's main address.
3.  AirLift shows the DNS record to create. Create it at your DNS provider:
    -   for a subdomain such as `www.example.com`: a **CNAME** record pointing to your app's free address;
    -   for a root domain such as `example.com`: the **A** records shown, or one CNAME / ALIAS record to your app's free address if your DNS provider allows it on the root domain;
    -   if a **TXT** record is shown, create it too.
4.  Wait. The domain shows **Waiting for DNS**, then **Setting up**, then **Connected**. The certificate is issued automatically once DNS points to the app.

If your domain uses Phluit DNS, see [How do I add, edit or delete DNS records?](/products/domains-dns/manage-dns-records/)

## Domain states

| State | What it means |
| --- | --- |
| Waiting for DNS | The record isn't there yet, or hasn't spread. This can take from minutes to a few hours. |
| Setting up | DNS is right and the certificate is being issued. |
| Connected | The domain works with HTTPS. The card shows until when the certificate is valid. |
| Problem | Check that the record matches exactly what AirLift shows, and that no other A or AAAA record for the same name points elsewhere. |

## Change or remove a domain

-   **Make primary** sets another domain as the main address.
-   **Remove** disconnects the domain. Delete its DNS record at your provider too.

When all the plan's domains are in use, move to a bigger plan to add more. See [Change plan, billing and destroying an app](/products/airlift/plan-billing-and-destroy/).
