# Dynamically generating subdomains using subdomain-fu

**URL:** <https://www.ruby-forum.com/t/dynamically-generating-subdomains-using-subdomain-fu/189305>\
**Category:** Rails\
**Created:** [May 28, 2010, 12:45pm UTC](https://www.ruby-forum.com/t/dynamically-generating-subdomains-using-subdomain-fu/189305 "2010-05-28T12:45:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![swetha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ebca7d/32.png) [@swetha](https://www.ruby-forum.com/u/swetha)\
**Post date:** [May 28, 2010, 12:45pm UTC](https://www.ruby-forum.com/t/dynamically-generating-subdomains-using-subdomain-fu/189305/1 "2010-05-28T12:45:58Z")

</div>

hi,

I am using subdomain-fu for creating subdomains . My doubt is how  
can we give the subdomains in the etc/hosts ,when the sub-domains are  
dynamicallybeing created.

Ex: i created a subdomain called “user1” and i specified this in etc/  
hosts file.So eveery time i cant specify the subdomain which is being  
created.So can i ovecome this problem.
