IIS 7 sites, working with domainname.com not www.domainname.com. DNS problem?

-1

I have my domain name registered with ASPHostPortal and pointing to my IIS server where I have an ASP.net MVC application deployed. To accomplish this I simply have an entry record that points to the IP address of my IIS server.

The connection name of my IIS web application is domainname.com. I can hit is just fine in the browser. However, when I try to hit www.domainname.com it hits the default IIS website. How do I get both domainname.com and www.domainname.com to hit my web application. Do I need a special A CNAME record or entry?

Also, I'd like * .domainname.com to hit my app as well. Is there a way to do this in DNS or IIS?

Thanks in advance

    
asked by anonymous 07.05.2015 / 10:05

1 answer

0

This may occur when your dominio.com was not added as A record and the www domain was not added as CNAME (#).

Try to check on your hosting if your domain is configured like this:

domainname.com — NS — NS1.DOMINIO.COM.
domainname.com — NS — NS2.DOMINIO.COM.
domainname.com — A — ENDEREÇO IP
www — CNAME — domainname.com

If you prefer, you can check these sites to help you set up:

07.05.2015 / 14:02