> For the complete documentation index, see [llms.txt](https://docs.cipp.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cipp.app/setup/setting-up-cipp/customdomain.md).

# Adding a Custom Domain Name

## Why set up a custom domain?

1. The automatically generated domain uses azurewebsites.net which is often blocked by web filtering products as it's often used by spammers and phishing sites due to the ease of obtaining an azurewebsites.net subdomain.
2. Your bookmark stays the same if you redeploy.
3. Easier to communicate internally and looks better for your team.

At the moment of deployment, the application uses a generated domain name. To change this, follow these instructions:

## CyberDrain Hosted Clients

{% stepper %}
{% step %}

### Log In to Management Portal

Go to [management.cipp.app](https://management.cipp.app/)
{% endstep %}

{% step %}

### Pick the Domains tab

{% endstep %}

{% step %}

### Click Add Domain

{% endstep %}

{% step %}

### Add DNS Records

The screen will give you the DNS record you need to add at your DNS provider: a CNAME for a subdomain, or an A record for an apex (root) domain.

{% hint style="warning" %}
If a TXT record named `asuid.<your domain>` exists from a previous setup, remove it — domain-verification TXT records are no longer used, and a leftover one blocks validation.
{% endhint %}
{% endstep %}

{% step %}

### Enter Domain and Submit

Enter your desired domain into the management portal. Click Add Domain
{% endstep %}

{% step %}

### Wait

The system will validate that the DNS record exists and provision a certificate. The custom domain will become available when certificate provisioning is complete and its status changes to Ready.
{% endstep %}
{% endstepper %}

## Self-Hosted

{% stepper %}
{% step %}

### Go to the Azure Portal

{% endstep %}

{% step %}

### Find the resource group you deployed CIPP in

{% endstep %}

{% step %}

### Click on the App Service

{% endstep %}

{% step %}

### In the sidebar, click on Settings, Custom Domains

{% endstep %}

{% step %}

### Click on Add Custom Domain and enter your information

{% endstep %}
{% endstepper %}

For more information see Microsoft's documentation at <https://learn.microsoft.com/en-us/azure/app-service/app-service-web-tutorial-custom-domain?tabs=root%2Cazurecli>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.cipp.app/setup/setting-up-cipp/customdomain.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
