Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I want to keep some web projects in my local host so my customers can access some webapps I'm developing.

I've got a domain name that is currently mapped to my dynamic home ip. e.g:

demo.mydomain.com -> maps to my currenty ip running apache

What I want to to is to map *.demo.mydomain.com to a concrete document path in my home server

customer1.demo.mydomain.com -> should point to the folder where the webapp for the customer1 lives

I'm aware of apache virtual host configuration (i.e. dynamically map a subdomain to a path in the web server), but the problem is that if I put the previous url in the browser (customer1.demo.mydomain.com) the page is not found, so I guess the dns resolution is failing

The question is how should I configure my domain provider to allow child subdomain wildcards? I'm using Enom (got it after setting up my Google Apps account)

share|improve this question

1 Answer 1

up vote 0 down vote accepted

You need to add a wildcard DNS record. I have no idea how to do that using "Enom", but in Bind it would be a literal wildcard A record, like this:

*        A       1.2.3.4

This would have to be defined in the demo.mydomain.com sub-domain definition. How exactly you do that depends on what UI Enom provides for you.

share|improve this answer
    
Just to confirm that this works and enom allows wildcards. But I needed to use a CNAME record as I don't have a static IP and I'm using a redirect online service. Just tested with my local Apache and works flawlessly. Thanks! PS: Enon provides a web that allows editing those records, I accessed it through the Google Apps Admin panel, just in case someone gets here with a similar problem. –  Ricky AH Nov 12 '12 at 19:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.