Trying to add my custom domain - i am on NameCheap

I am trying to add a custom domain to my canister i followed everything here : Internet Computer Loading

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

curl -sLv -X POST
-H ‘Content-Type: application/json’
–data @- <<EOF
“name”: “

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.

To resolve this error, it is important to ensure the accuracy and accessibility of the provided URL

Let me ping some folks who may know.

1 Like

Yes, the URL is accurate - should it be the. full URL , for example: or just ?

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

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

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.

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

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:

curl -A "googlebot" https://<your_canister_id>

The response should look like similar to this:

I hope that helps :slight_smile:

1 Like

this command returns an html snippet

<html lang="en">
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width,initial-scale=1"/>
    <script defer="defer" src="index.js"></script>
<body class="mode-dark dark:bg-[#1f2933]">
<link rel="stylesheet" href="css/shepherd-theme-arrows.css"/>
<div id="app" class="dark:bg-[#1f2933]"></div>
<script>var _paq = (window._paq = window._paq || []);
    /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
    (function () {
      var u = "";
      _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 = "//";
      s.parentNode.insertBefore(g, s);
<script src="./shepherd.min.js"></script>

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

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:
            "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.

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

for example:

You can refer to this page to fix the issue: