Search code examples
amazon-web-servicesdnsamazon-route53

How many subdomains we can create in Route 53 AWS DNS service?


In my application, I'm giving a subdomain (like user.domain.com) to each account. So, I'm planning to use AWS Route 53 for routing subdomains to my application. Is there any maximum limit of subdomains in Amazon Route 53. Thanks in advance!


Solution

  • I'm giving a subdomain (like user.domain.com) to each account

    You should revise your application design what If you users reached to million? and what if you want to migrate your DNS in future also subdomain maximum limit varies from service provider to service provider.

    So generalize solution cloud be like all subdomain will point to a single endpoint (Load balancer) and your core backend will check DNS and then load custom response base on the domain, normally login page for which you can save custom logo etc against domain name and load these resources base on domain.

    High-level architecture

    enter image description here

    So same case for a big cloud service provider, for example, slack, which provides subdomain for each user but do we think that slack manages route53 record for each users?

    enter image description here

    how-slack-works

    Or you can simply do nslookup, for thousand domain you will get the same backend IP.

    slacker:~$ nslookup acmeinc.slack.com
    Name:   acmeinc.slack.com
    Address: 13.228.49.204
    
    slacker:~$ nslookup www.slack.com
    Name:   www.slack.com
    Address: 13.228.49.204