Search code examples
dnssubdomainwindows-server-2012windows-server

Binding all subdomains to single domain in windows server


I have made my A record in dns

*.mysite.com      A      xxx.xxx.xxx.xxx (the ip)

Now at my server I want to bind all of the subdomains to www.mysite.com binding does not allow using *.mysite.com but allows using * and it works as I want to. but the problem is that it binds other websites on the server too.

by the way:

   *.mysite.com    CNAME     www.mysite.com

does not work and I don't know why.

Any suggestion how to do this?


Solution

  • I solved it by creating default website bibding it to an empty hostname this does what I want but the problem is all other domains that are pointing to my server, If not binded to anything will be directed to the same site, but this is not a problem in my case.