# One RonR applications serving hundreds of domains...how do I point many to one DNS?

**URL:** <https://www.ruby-forum.com/t/one-ronr-applications-serving-hundreds-of-domains-how-do-i-point-many-to-one-dns/120235>\
**Category:** Rails\
**Created:** [November 15, 2007, 1:30am UTC](https://www.ruby-forum.com/t/one-ronr-applications-serving-hundreds-of-domains-how-do-i-point-many-to-one-dns/120235 "2007-11-15T01:30:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 15, 2007, 1:30am UTC](https://www.ruby-forum.com/t/one-ronr-applications-serving-hundreds-of-domains-how-do-i-point-many-to-one-dns/120235/1 "2007-11-15T01:30:29Z")

</div>

I write this letter to ask what could be a simple one line answer or  
require much study. I am self taught and have spent the last year  
putting in 2,000 hours in developing a Ruby on Rails application that  
will service hundreds of distinct domains covering a wide range of web  
adventures. Each domain can select from a group of 10 modules (such as  
Forum, Product Review, Candidate Listings, eBuy, etc.) that are  
appropriate to the business focus. Seen another way, the RonR  
application serves up distinct content for each of the 100+ domains.  
I’ve purchased most of the books from [Amazon.com](http://Amazon.com) covering these areas  
and my method of learning is to simply read these books, again and  
again! Now, I find I must learn a ‘technique’ for putting all this  
together in a managable way. My objective is to point all my 100+  
domains ([www.something.com](http://www.something.com)) to one DNS address (I’ve heard of Dynamic  
DNS or CName records) and then point this one DNS record to wherever  
my application and server reside. I feel this strategy is necessary if  
I ever wish to change my hosting strategy without pointing each  
separate .com to a new DNS address. How might I accomplish this? I am  
grateful for any reply or suggestion of a book that I should purchase.  
Kathleen

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 15, 2007, 1:47am UTC](https://www.ruby-forum.com/t/one-ronr-applications-serving-hundreds-of-domains-how-do-i-point-many-to-one-dns/120235/2 "2007-11-15T01:47:25Z")

</div>

On 11/14/07, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I write this letter to ask what could be a simple one line answer or  
> require much study. I am self taught and have spent the last year  
> putting in 2,000 hours in developing a Ruby on Rails application that  
> will service hundreds of distinct domains covering a wide range of web  
> adventures. Each domain can select from a group of 10 modules (such as  
> Forum, Product Review, Candidate Listings, eBuy, etc.) that are  
> appropriate to the business focus. Seen another way, the RonR  
> application serves up distinct content for each of the 100+ domains.

Wow, quite a project! Nice job.

> I’ve purchased most of the books from [Amazon.com](http://Amazon.com) covering these areas  
> and my method of learning is to simply read these books, again and  
> again! Now, I find I must learn a ‘technique’ for putting all this  
> together in a managable way. My objective is to point all my 100+  
> domains ([www.something.com](http://www.something.com)) to one DNS address (I’ve heard of Dynamic  
> DNS or CName records) and then point this one DNS record to wherever  
> my application and server reside. I feel this strategy is necessary if  
> I ever wish to change my hosting strategy without pointing each  
> separate .com to a new DNS address. How might I accomplish this? I am  
> grateful for any reply or suggestion of a book that I should purchase.

Exactly, [www.something.com](http://www.something.com) CNAME [www.myapp.com](http://www.myapp.com) for each  
[www.something.com](http://www.something.com) you have.

Best,  
jeremy

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 15, 2007, 2:23am UTC](https://www.ruby-forum.com/t/one-ronr-applications-serving-hundreds-of-domains-how-do-i-point-many-to-one-dns/120235/3 "2007-11-15T02:23:02Z")

</div>

On Nov 14, 2007, at 4:29 PM, removed\_email\_address@domain.invalid wrote:

> again! Now, I find I must learn a ‘technique’ for putting all this  
> together in a managable way. My objective is to point all my 100+  
> domains ([www.something.com](http://www.something.com)) to one DNS address (I’ve heard of Dynamic  
> DNS or CName records) and then point this one DNS record to wherever  
> my application and server reside. I feel this strategy is necessary if  
> I ever wish to change my hosting strategy without pointing each  
> separate .com to a new DNS address. How might I accomplish this? I am  
> grateful for any reply or suggestion of a book that I should purchase.  
> Kathleen

How to use subdomains without any hassle in DNS, HTTP server config,  
etc…

[http://www.railsdev.ws/blog/10/using-subdomains-in-rails-apps/](http://www.railsdev.ws/blog/10/using-subdomains-in-rails-apps/)

– gw (www.railsdev.ws)
