4
6 Comments

Domain name API?

Is there a domain name api that can be used to do things similar to how Squarespace grants subdomains to users? I want to be able to provide a similar service but am just unaware of how it works.

on May 31, 2019
  1. 1

    You don't really need an API for that, depends on your app on how you support it, but the DNS is just a wildcard A record usually.

    https://www.google.com/search?client=firefox-b-1-d&channel=cus&q=dns+wildcard+subdomain

    1. 1

      So I would be able to do something like squarespace without necessarily coding it?

      1. 1

        Like I said it depends on your app.

        To build something like Square Space you'll need code, but to add the subdomain feature depends if the app support multi-tennant features already or not. The subomain just scopes your app to a particular user.

        Most development frameworks (express, rails, laravel, etc) have support for this kind of feature and there are a lot of tutorials available on how to build app like that.

        1. 1

          Thank you I appreciate it!

    1. 1

      Nice. I did some research and, I may be wrong, but it doesn't appear to accept json. I'm not sure but does CloudFlare or Easy DNS handle this too?