Previous Next

Thread: WWW DNS setting not forwarding to default site

Last post 09-04-2008 8:26 AM by steve schofield. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 09-03-2008, 6:14 PM

    WWW DNS setting not forwarding to default site

    I am trying to set up a website on IIS7 and working with the DNS server.  I created a new site on IIS7, which is website.com.  Under the bindings, I listed website.com.

     Then I create a DNS record that points to my IP address. I created a new forward lookup zone title website.com.  I set the host (A) record to the external IP, 1.2.3.4.  I then setup a CNAME record for the WWW with the value website.com.

    Now, when I view my site and go to website.com, the page shows properly.  When I go to www.website.com, the webpage loads from my Default Web Site in IIS.  How can I direct WWW to go to the proper website?  What am I missing here?

    Thanks in advance.

    Tags:
  • 09-03-2008, 6:37 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 1,236

    Re: WWW DNS setting not forwarding to default site

    You also need to add binding for www.website.com in the IIS site binding.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 09-03-2008, 7:29 PM In reply to

    Re: WWW DNS setting not forwarding to default site

    That seems to work.  Do I still need the DNS record as a CNAME to point the www.website.com to website.com, or is that no longer necessary?

    Is there a limit to the number of bindings I can have?  Also, do you have any links to articles that explains this in detail?

    Thanks for your assistance.

  • 09-04-2008, 8:26 AM In reply to

    Re: WWW DNS setting not forwarding to default site

    You don't necessarily need to add a binding explicitly for every site.  If you want to tie several domains to a single ip address, leave the all unassigned or specific ip address in the bindings section.  IIS will automatically hand off the request to the correct website.

    http://support.microsoft.com/kb/308163

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield

    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
Page 1 of 1 (4 items)
Page view counter