Is it possible to route *.example.com to a single machine without registering extra domains?

Posted by oligofren on Server Fault See other posts from Server Fault or by oligofren
Published on 2012-06-21T14:24:12Z Indexed on 2012/06/21 15:17 UTC
Read the original article Hit count: 227

I would like to achieve something similar to what wordpress.com does - giving each user its own subdomain. user1.wordpress.com would in the VirtualHosts setup of Apache would have its DocRoot at /user/user1, for instance.

Now, our hosting service provider takes a fee for creating a domain, and in our case this would mean a ridiculous number of domains with a matching price. After some googling on DNS I came over a description of a DNAME record. That seems to fit the bill precisely. Any reason why my service provider would not do this, or why I should not do this?

© Server Fault or respective owner

Related posts about dns

Related posts about cname-record