The domain [domain] can't be found under [project]

Hi – I have been running

bun vercel dns import [domain] [zone file]

but it keeps on telling me

The domain [domain] can't be found under [team]

Some notes:

  1. When I go to https://vercel.com/[team]/[project]/settings/domains, I am able to see the domain listed there.
  2. I am calling the vercel command from a linked project folder.
  3. The domain is purchased on GoDaddy but I have pointed the nameservers to Vercel and I have a subdomain pointing a deploy on this project (from the GUI).
  4. This works for my other ones purchased on namecheap where I have pointed the nameservers to Vercel. I noticed that those other ones are listed as “Account Domains” whereas the current one is not (see image below). I think this is a legacy issue as I cannot move this new domain to become an “Account Domain”
    image

How can I rectify this situation?

Hi @tianhuil. It sounds like a team scope issue. You can use the vercel switch command or the --scope option to change to the correct team scope. Please give that a try and let me know if it works for you.

1 Like

Thank you so much @amyegan for that super fast response this late at night! That worked!

Vercel should really change the error because my new command is

vercel --scope [team] DNS import ...

But the error when I didn’t use --scope [team] said the domain could not be found under can't be found under [team]. The error is confusing because it made me think the tool figured out the right team and didn’t need me to supply it under the scope.

1 Like

I’m glad it worked for you! And I’ll share your feedback with the CLI team :smile:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.