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

Asked

Viewed 370 times

-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 achieve this I simply have an input log that points to the IP address of my IIS server.

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

Also, I would like * .domainname.com to hit my app as well. There is a way to do this on DNS or IIS?

Thanks in advance

1 answer

0

This can occur when your dominio.com was not added as A record and the domain www not added as CNAME (Canonical Name Record).

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

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:

Browser other questions tagged

You are not signed in. Login or sign up in order to post.