# Custom Domain

## Configuration

Before iPaper can setup the Custom Domain module, you need to setup the domain on your end first. The subdomain can be anything you want, but let’s assume the following scenario:

```
Current catalog address: viewer.ipaper.io
Main website: www.client.com
Subdomain: catalogs.client.com
```

In this case, catalogs.client.com needs to be setup as a CNAME record pointing to the partner address. That is, the following CNAME record should be made:

```
catalogs.client.com => viewer.ipaper.io
```

If your catalogs are hosted through an iPaper partner, the CNAME alias should point to that specific partners address:

```
catalogs.client.com => {partner}.ipapercms.dk
```

{% hint style="warning" %}
**Important:**&#x20;

The subdomain MUST be setup as a CNAME record, an A record will not work. If you have both External and Internal DNS, the CNAME record should be set up on both.
{% endhint %}

## Verification

To verify if the domain has been setup, you can use the following tool: <http://network-tools.com/nslook/Default.asp?domain=publikationer.ipaper.dk&type=255&server=67.222.132.198&class=1&port=53&timeout=5000&go.x=-791&go.y=-257>

Replace `publikationer.ipaper.dk` with the desired subdomain.


---

# Agent Instructions: 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:

```
GET https://docs.ipaper.io/flipbook-integration/custom-domain.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
