# Trying to add my custom domain - i am on NameCheap

**URL:** <https://forum.dfinity.org/t/trying-to-add-my-custom-domain-i-am-on-namecheap/20253>\
**Category:** JavaScript\
**Created:** [May 25, 2023, 7:15pm UTC](https://forum.dfinity.org/t/trying-to-add-my-custom-domain-i-am-on-namecheap/20253 "2023-05-25T19:15:41Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![bblist](https://avatars.discourse-cdn.com/v4/letter/b/8e7dd6/32.png) [@bblist](https://forum.dfinity.org/u/bblist)\
**Post date:** [May 25, 2023, 7:15pm UTC](https://forum.dfinity.org/t/trying-to-add-my-custom-domain-i-am-on-namecheap/20253/1 "2023-05-25T19:15:41Z")

</div>

I am trying to add a custom domain to my canister i followed everything here : [Internet Computer Loading](https://internetcomputer.org/docs/current/developer-docs/production/custom-domain/#custom-domains-on-the-boundary-nodes)

After running this code with my own domain - i get the error message below:

curl -sLv -X POST   
-H ‘Content-Type: application/json’   
[https://icp0.io/registrations](https://icp0.io/registrations)   
–data @- \<\<EOF  
{  
“name”: “[myowndomain.com](http://myowndomain.com)”  
}  
EOF

Error message: domain is missing from canister 5osq2-id-aaaap-abbwq-cai list of known domains%

What am I missing here? also, this file .ic-assets.json5 keeps being created in the dist folder everytime that i build and deploy - please help.

---

<div class="post-metadata">

**Author:** ![diegop](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/diegop/32/569_2.png) [@diegop](https://forum.dfinity.org/u/diegop)\
**Post date:** [May 25, 2023, 9:55pm UTC](https://forum.dfinity.org/t/trying-to-add-my-custom-domain-i-am-on-namecheap/20253/3 "2023-05-25T21:55:41Z")

</div>

Let me ping some folks who may know.

---

<div class="post-metadata">

**Author:** ![bblist](https://avatars.discourse-cdn.com/v4/letter/b/8e7dd6/32.png) [@bblist](https://forum.dfinity.org/u/bblist)\
**Post date:** [May 26, 2023, 6:11am UTC](https://forum.dfinity.org/t/trying-to-add-my-custom-domain-i-am-on-namecheap/20253/4 "2023-05-26T06:11:14Z")

</div>

Yes, the URL is accurate - should it be the. full URL , for example: [www.example.com](http://www.example.com) or just [example.com](http://example.com) ?

---

<div class="post-metadata">

**Author:** ![bblist](https://avatars.discourse-cdn.com/v4/letter/b/8e7dd6/32.png) [@bblist](https://forum.dfinity.org/u/bblist)\
**Post date:** [May 26, 2023, 6:16am UTC](https://forum.dfinity.org/t/trying-to-add-my-custom-domain-i-am-on-namecheap/20253/5 "2023-05-26T06:16:24Z")

</div>

Also, can you explain a bit more? what do you mean the accessibility? what i provided here is only an example.

---

<div class="post-metadata">

**Author:** ![rbirkner](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@rbirkner](https://forum.dfinity.org/u/rbirkner)\
**Post date:** [May 26, 2023, 6:49am UTC](https://forum.dfinity.org/t/trying-to-add-my-custom-domain-i-am-on-namecheap/20253/6 "2023-05-26T06:49:31Z")

</div>

> [@bblist](#):
>
> Error message: domain is missing from canister 5osq2-id-aaaap-abbwq-cai list of known domains%

It looks like the canister ID (`5osq2-id-aaaap-abbwq-cai`) that you provided is not a valid canister ID. Are you sure you put the right canister ID in the TXT record of `_canister-id.myowndomain.com`?

---

<div class="post-metadata">

**Author:** ![bblist](https://avatars.discourse-cdn.com/v4/letter/b/8e7dd6/32.png) [@bblist](https://forum.dfinity.org/u/bblist)\
**Post date:** [May 26, 2023, 7:46am UTC](https://forum.dfinity.org/t/trying-to-add-my-custom-domain-i-am-on-namecheap/20253/7 "2023-05-26T07:46:59Z")

</div>

Here i have attached what i have - hope you don’t mind i hide the full ID - the ID that i listed in the comment is not correct - but i have the correct one added in the registrar.

 ![Screenshot 2023-05-26 at 3.42.05 PM](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/2X/b/bca432670da1cf29c75b8979f5d81b86011e0111.png)

---

<div class="post-metadata">

**Author:** ![rbirkner](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@rbirkner](https://forum.dfinity.org/u/rbirkner)\
**Post date:** [May 26, 2023, 8:17am UTC](https://forum.dfinity.org/t/trying-to-add-my-custom-domain-i-am-on-namecheap/20253/8 "2023-05-26T08:17:02Z")

</div>

Hi @bblist

Thanks a lot for providing a bit more details. Your configuration looks good. The problem is with the `ic-domains` file that you need to host under `your-canister.icp0.io/.well-known/ic-domains`.

As part of the registration process, the boundary checks that your custom domain appears under this path. You can try it yourself by issuing the following command from the terminal:

```auto
curl -A "googlebot" https://<your_canister_id>.icp0.io/.well-known/ic-domains

```

The response should look like similar to this:

```auto
mydomain.com
www.mydomain.com

```

I hope that helps 🙂

---

<div class="post-metadata">

**Author:** ![marvin](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/marvin/32/9267_2.png) [@marvin](https://forum.dfinity.org/u/marvin)\
**Post date:** [May 31, 2023, 1:27pm UTC](https://forum.dfinity.org/t/trying-to-add-my-custom-domain-i-am-on-namecheap/20253/9 "2023-05-31T13:27:01Z")

</div>

> [@rbirkner](#):
>
> ```auto
> mydomain.com
> www.mydomain.com
> 
> ```

this command returns an html snippet

```auto
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width,initial-scale=1"/>
    <title>KawaK</title>
    <script defer="defer" src="index.js"></script>
</head>
<body class="mode-dark dark:bg-[#1f2933]">
<link rel="stylesheet" href="css/shepherd-theme-arrows.css"/>
<div id="app" class="dark:bg-[#1f2933]"></div>
</body>
<script>var _paq = (window._paq = window._paq || []);
    /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
    _paq.push(["trackPageView"]);
    _paq.push(["enableLinkTracking"]);
    (function () {
      var u = "https://kawak.matomo.cloud/";
      _paq.push(["setTrackerUrl", u + "matomo.php"]);
      _paq.push(["setSiteId", "1"]);
      var d = document,
        g = d.createElement("script"),
        s = d.getElementsByTagName("script")[0];
      g.async = true;
      g.src = "//cdn.matomo.cloud/kawak.matomo.cloud/matomo.js";
      s.parentNode.insertBefore(g, s);
    })();
</script>
<script src="./shepherd.min.js"></script>
</html>

```

for me and I have my domain name added to the ic-domains file already

---

<div class="post-metadata">

**Author:** ![rbirkner](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@rbirkner](https://forum.dfinity.org/u/rbirkner)\
**Post date:** [May 31, 2023, 3:24pm UTC](https://forum.dfinity.org/t/trying-to-add-my-custom-domain-i-am-on-namecheap/20253/10 "2023-05-31T15:24:43Z")

</div>

Hi @marvin,

just to make sure:

- You have a file under `.well-known/` called `ic-domains`, which contains your domains;
- You have a file called `.ic-assets.json` at the root of your canister with at least the following content:

```auto
[
    {
        "match": ".well-known",
        "ignore": false
    }
]

```

If that’s case, please share your canister-id/custom domain with us (also over DM), such that we can investigate.

---

<div class="post-metadata">

**Author:** ![bblist](https://avatars.discourse-cdn.com/v4/letter/b/8e7dd6/32.png) [@bblist](https://forum.dfinity.org/u/bblist)\
**Post date:** [May 31, 2023, 5:06pm UTC](https://forum.dfinity.org/t/trying-to-add-my-custom-domain-i-am-on-namecheap/20253/11 "2023-05-31T17:06:07Z")

</div>

Hi, double check that you have in your ic-domains file both domains:

for example:

> **[Web Hosting, Domain Name Registration - MyDomain.com](https://www.mydomain.com/)**
>
> Small business web hosting offering additional business services such as: domain name registrations, email accounts, web services, and various small business solutions.

> **[Web Hosting, Domain Name Registration - MyDomain.com](https://www.mydomain.com)**
>
> Small business web hosting offering additional business services such as: domain name registrations, email accounts, web services, and various small business solutions.

---

<div class="post-metadata">

**Author:** ![bblist](https://avatars.discourse-cdn.com/v4/letter/b/8e7dd6/32.png) [@bblist](https://forum.dfinity.org/u/bblist)\
**Post date:** [May 31, 2023, 5:11pm UTC](https://forum.dfinity.org/t/trying-to-add-my-custom-domain-i-am-on-namecheap/20253/12 "2023-05-31T17:11:16Z")

</div>

You can refer to this page to fix the issue:

[https://forum.dfinity.org/t/re-trying-to-add-my-custom-domain-i-am-on-namecheap/20261](https://forum.dfinity.org/t/re-trying-to-add-my-custom-domain-i-am-on-namecheap/20261)
