How to setup site for no www

iis-7windows-server-2008-r2

the company im working at handle the hosting our self. we got www.domain.com up now and we want to make the domain.com to work as well. we use iis7. i seen some articles and found one with url rewrite setting that can be added to iis7. my question is how whats the best way to go? we dont want to cut any corners we want to do it proper.

Much appriciated for answers. this is the article i mensioned above http://weblogs.asp.net/owscott/archive/2009/11/27/iis-url-rewrite-rewriting-non-www-to-www.aspx

plus i been looking at this, is this enough?
windows 2008 DNS Website without www?

Best Answer

It is enough to setup the proper DNS records to get the website working with and without wwww.

Usually, it is done by pointing the domain name to the server IP and by defining the www as CNAME to the same domain.

The article in the first link you provided describes a possible optimization as they said. They said that rewrite rules are defined to make search engines see only one site not two.