Using subdomains with onrender custom domains

Good day,

Please I’ve read and understood well how to add custom domain from here Configuring Namecheap DNS | Render Docs
However, details were not provided as to handle subdomains.

Assume I my domain.

my-domain.com and I need it to point to the frontend onrender frontend-onrender.com

Then I need to have the api on the subdomain too like
api.my-domain.com And I have another onrender running say api.onrender.com

Please, if I can get a quick help, it’ll really go a long way helping.

Thank you.

Have you tried following the typical setup from the docs for your frontend and then adding another CNAME record for your API?

That is, something like:

Type Host Value
A Record @ 216.24.57.1
CNAME Record www frontend.onrender.com
CNAME Record api api.onrender.com
1 Like

Okay thanks so much I’ll try that right away.
But please it looks like I can’t find “A” records here. Is there an alternative or something?

Never mind, I found out I needed to toggle the Custom DNS to “NameCheap BasicDNS” under the “Domain” panel.

Thanks so much

Sounds like that worked out for you, then? If so, that’s great! :smile:

1 Like

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