I have my domain name registered with GoDaddy and pointing to my IIS server where I have an ASP.net MVC application deployed. To accomplish this I simply have an A record entry pointing to the IP Address of my IIS server.
The binding name of my IIS web application is example.com. I can hit this just fine in the browser. However, when I try to hit www.example.com it hits the default IIS website. How do I get both example.com and www.example.com to hit my web application? Do I need a special A record or CNAME entry?
I would also like *.example.com to hit my application. Is there a way to do this in DNS or IIS?