title: Implementing 3rd level domain name hosting
body: <p>Say, you have a 2nd level domain name of your home town: <code>my-town.us</code> and you want to give away 3rd level domain names (like <code>the-barber.my-town.us</code>) automatically and for free to anyone requested (i.e. implement 3rd level domain hosting). How would you go about implementing it?</p>
  
  <p>I thought about using wildcard DNS record <code>*.my-town.us</code> to point to a web app, which would make a redirect based on requested url. But that would not be any good, because redirect will, well, <em>redirect</em> instead of using the desired domain <code>the-barber.my-town.us</code>.</p>