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 have a domain, say example.com and several subdomains under it, like mail.example.com, dev.example.com and so on, of which some point to other servers, and some point to the same server with apache set up with name-based virtual hosts.

Now, I also have another domain, say xample.com which I want to use in case a user misspells the address, so I want every subdomain of xample.com to point to the same subdomain under example.com. How can I accomplish this with minimal configuration and later maintenance of the xample.com domain? I've read on wikipedia about DNAME-records, which seems to serve my purpose, but my DNS provider doesn't seem to support this type of records.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

If the only service you're worried about is http. You could use a single wildcard DNS entry pointing to the main webserver and then from there use redirects to point the user to the corrected domain.

Another option is if you're willing to run your own DNS server, you can use includes to easily have the same config for all domains.

I do this and then have my DNS Provider replicate the settings from there. Doing this adds a bit of overhead on the maintenance side though.

share|improve this answer
Thanks for answering - though it wasn't exactly the answer I was hoping for :/ A redirect via the webserver is not optimal for several reasons, and I had hoped to avoid setting up my own DNS server. I just got answer from my current DNS provider though, and it said basically the same thing. Maybe I'll try to find a provider that supports DNAME-records - hope I've understood how these work correctly... –  Wonko Feb 10 '11 at 8:44

Your Answer


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.