0

I'm planning app, that needs to have hundreds (maybe thousands) of domain attached. Is it possible with Heroku?

Max Filippov
  • 2,024
  • 18
  • 37

2 Answers2

2

As far as I know, there is no limit on the number of domains. However, if the number of domains starts to increase to more than a 10/20 domains, then you may consider to use a wildcard domain and handle the routing logic inside your application.

Simone Carletti
  • 173,507
  • 49
  • 363
  • 364
  • I read that article, as I understood, wildcard domain concerns subdomains and I need exactly new domains (I'm designing online store service). – Max Filippov Mar 27 '13 at 22:33
0

You can add any number of domains to a single app by repeating the add command with different values

noz
  • 129
  • 1
  • 5
  • And can I add DNS zone for each domain by my Rails app? – Max Filippov Mar 27 '13 at 22:27
  • As far as I know, you must configure your DNS to point your application hostnames to Heroku manually, so you should have your own DNS to do this (it is not a job for Rails app) – noz Mar 27 '13 at 22:35
  • Well, as I suppose to know all I need to create a new zone is to make changes in several text files (so why it is not job for Rails?), the question is: would Heroku provide me access to these or not. – Max Filippov Mar 27 '13 at 22:38
  • DNS translates easily memorised domain names to the numerical IP addresses needed for the purpose of locating computer services and devices worldwide. You can manage you DNS with a Rails app (f.e. PowerDNS on Rails). But you still need to have it. In fact there is no DNS included to dino where you deployed a Rails app at Heroku. When an app has a custom domain assigned and your DNS is configured to point at Heroku, the routing mesh will take each request to the custom domain and route it to the assigned app – noz Mar 27 '13 at 22:48