I've just started hosting a master-server service for the game Crysis Wars, in order to replace the failed GameSpy service.

The subdomain for the service is master.example.com, but I however want any requests for a subdomain under it to go to the original subdomain.

For example, any request for test.master.example.com should point to master.example.com.

I've tried a matching URL pattern at my webhost but they do not see the domain as being correct.

How can I do this?

  • Do you using apache server? php / wordpress for your site? – Helping Hands Jan 7 '15 at 10:12
  • @HelpingHands No web-hosting is used. I wasn't sure if this was on-topic on Webmasters, or if it's better suited to Server Fault. – AStopher Jan 7 '15 at 10:15
  • But without web host how you running site? – Helping Hands Jan 7 '15 at 10:16
  • @HelpingHands The actual main domain isn't be used for anything, it's just forwarded to an error page. The subdomain master.example.com is forwarded to an IP address on my Windows-based dedicated server. I'm not sure if the dedicated server needs to handle this, or the registrar does. – AStopher Jan 7 '15 at 10:18
  • Ahh. ok. It should be handle by server provider team. – Helping Hands Jan 7 '15 at 10:22

I found the solution, I had to use a Wildcard on the DNS A record for master.example.com:


The wildcard *. ensures any attempted connection goes to master.example.com.

The registrar where the domain's DNS is currently managed didn't help and actually attempted to trick me into purchasing a subdomain (something my current provider does for free), and made absolutely no hint I needed a wildcard DNS record (I found the solution after searching 'catch-all subdomain').

| improve this answer | |
  • 1
    Great! I was not sure how IIS would handle this. Apache would, but you would have to some configuration and that is what I was looking for in IIS. IIS 8 apparently will allow wildcard host name hence why I asked the question. You discovered part 2 of the answer. Congrats! Up-votes on the way!! – closetnoc Jan 7 '15 at 17:02
  • @closetnoc I would've been able to get this done when I decided I needed it if the registrar hadn't been so awkward (123-reg, they're cheap for a reason). – AStopher Jan 7 '15 at 17:04
  • Yeah. One thing I always say here is you get what you pay for. I always advise that people use a quality registrar and host and not go for price. Domain name registration and hosting is cheap enough and has been for quite a long time now that I cannot see shaving too much off the price. But then again, I used to be a web host and proxy registrar (before competition against NetSol) and a certification issuer. I got out of that business because people ran toward the cheap and then would come back crying. It got frustrating and costly. There were better ways to make money. – closetnoc Jan 7 '15 at 17:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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