DEV Community

KaMeHaMeHA
KaMeHaMeHA

Posted on

Noob here - how to let users point their custom domain to my application?

Sorry if this question is too broad or vague.
How do we just like shopify, let our users connect their own custom domains and point it to their store made on our app.

Right now, it opens under our own domain as a subpage, but I want it to be completely accessible through their custom domain, (even when being opened through the subpage url - it should redirect to their connected custom domain).

  • Should auto issue SSL certificates to their domains.
  • Need to do it without using any paid third-party service
  • Should be very cheap or virtually free.

- I've heard it's a feature offered only by AWS but are there ways to do the same on other hosts too like vulr, DO, linode

Bonus Question - How do big dogs like shopify, blogger and all these services that let users connect their own domain to their page do it?
It's works efficiently, they only ask to add some (a records/c names) and there's a refresh button to check whether changes have been made.

I want to know the entire flow, right from start from to how it analyzes domain's dns and connects the page to that domain and so now it looks just like a separate website.

We are using heroku
Firebase realtime
Express,
React js,
Node js

Also, I'm still learning, so please excuse if I used some wrong terms.

Top comments (4)

 
kamehameha profile image
KaMeHaMeHA • Edited

Thanks again, I think I'm getting a rough picture on how now.
by the way,
We are using
Firebase realtime
Express,
React js,
Node js
heroku netlify for hosting

If you have any additional tips to share, I'd appreciate it.

Collapse
 
kamehameha profile image
KaMeHaMeHA • Edited

Thanks a lot for the explanation.

I had some rough idea how this works.
Only thing Idk how to go about it. I want to know how do I do it:

  • How to get my own TXT record/CNAME that users can update their domains with to prove ownership of their domain.

  • How to collect ownership proof token and How to check if it's valid

  • Configure hosting platform to map requests for custom domain - but how?

Is there any in depth guide on this? It would help me immensely.
I know it's a tall ask but can you help with this or share tutorial/guide on this. Thanks once again! You're truly amazing!