« Previous Next »

Thread: Host Headers and DNS settings

Last post 12-22-2008 8:15 AM by chetanrp. 11 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (12 items)

Sort Posts:

  • 08-07-2008, 9:08 PM

    • mabrito
    • Not Ranked
    • Joined on 06-03-2007, 1:55 AM
    • Posts 10

    Host Headers and DNS settings

    Im using Server 03 Standard Edition which means ill be using IIS 6.0. I want to set up host headers. I have my main website and then I have a mail server that also has its own web interface. Basically im trying to have them both use port 80 and be able to access my website by typing in myDomain.org and access my mail interface by typing webmail.myDomain.org. I hear this can easily be done with host headers. Im just confused on setting up the DNS of them.

    Right now I am abel to access the web interface by typing in myDomain.org:9998, since I changed the port its on.

    If it helps, GoDaddy is the service im using to host my domain name.

    Any help would be greatly appreciated!

  • 08-07-2008, 11:53 PM In reply to

    Re: Host Headers and DNS settings

     well in your case I think you can work with sub-domains...

    Regards,
    MA Khan
    http://www.iisworkstation.com

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • 08-08-2008, 12:22 AM In reply to

    • mabrito
    • Not Ranked
    • Joined on 06-03-2007, 1:55 AM
    • Posts 10

    Re: Host Headers and DNS settings

    How do you go about setting a subdomain up? I know what they are, just quite dont know how to set them up.

  • 08-08-2008, 1:35 AM In reply to

    Re: Host Headers and DNS settings

    I believe goDaddy already has that enabled if you are in the right plan... you might want to take this up with their support ....

    Regards,
    MA Khan
    http://www.iisworkstation.com

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • 08-08-2008, 9:49 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 10:27 AM
    • Central NJ
    • Posts 6,078
    • IIS MVPs

    Re: Host Headers and DNS settings

    On godaddy, setup a CNAME record for webmail.  In your IIS, setup a second website and assign it the webmail.mydomain.org host header name.  Go back to the default/original site and give that the mydomain.org and www.mydomain.org host header names.

  • 08-08-2008, 12:39 PM In reply to

    • mabrito
    • Not Ranked
    • Joined on 06-03-2007, 1:55 AM
    • Posts 10

    Re: Host Headers and DNS settings

    Alright this is what I did. In IIS I gave the second website a host header value of webmail.myDomain.org and kept it on port 80. Then for the first website/Default website I gave it multiple host header values of myDomain.org and www.myDomain.org. So when you click the Advance button next to IP Address you see two entries.

    Then I logged into GoDaddy and found the webmail CNAME record and changed its value to webmail.myDomain.org. 

    Still not working. Did I do your steps right? Miss something?

  • 08-08-2008, 1:48 PM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 10:27 AM
    • Central NJ
    • Posts 6,078
    • IIS MVPs

    Re: Host Headers and DNS settings

    You're almost there ... The CNAME record you should have is Host "webmail" Points To "@" and there should be an A (Host) record for @ that Points To your server's IP address.

  • 08-08-2008, 2:32 PM In reply to

    • mabrito
    • Not Ranked
    • Joined on 06-03-2007, 1:55 AM
    • Posts 10

    Re: Host Headers and DNS settings

    Ok, so I pointed the CNAME record called "webmail" to @. @ does point to my public IP address, and does work because when I type myDomain.org,it does go to the Default site but when I type webmail.myDomain.org, it goes no where and get a page cant be found message. Do I have to do anything else that I may be missing?

    On this server that is hosting IIS, I also have Active Directory/DNS setup. The name I gave the domain controller is completely different from the domain name I own. I gave the domain controller a name scheme of name.local. Im not sure if this is even relavent but I thought Ill mention it just in case.

  • 08-08-2008, 2:53 PM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 10:27 AM
    • Central NJ
    • Posts 6,078
    • IIS MVPs

    Re: Host Headers and DNS settings

    1.  Page not found or server not found?  The former means it worked but something is misconfigured in IIS, the latter may mean that enough time has not passed for the DNS change to propagate through the internet (most likely reason). Give it an hour or more ...

    2.  As long as the godaddy DNS is correct this won't matter.

  • 08-08-2008, 3:25 PM In reply to

    • mabrito
    • Not Ranked
    • Joined on 06-03-2007, 1:55 AM
    • Posts 10

    Re: Host Headers and DNS settings

    Ha yeah it just needed its time. Two more quick question, it only works when I do webmail.myDomain.org, is there a way to make it work if the person was to type www.webmail.myDomain.org? Try making another host header value with www.webmail.myDomain.org and didnt work.

    Can this CNAME trick work with any Host value? Say if I was to make a CNAME entry called test and then point that to @ and make a website with a host name of test.myDomain.org, would that work?

     

    Thanks for your help though Tom, it's greatly appreciated!!

  • 08-08-2008, 3:35 PM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 10:27 AM
    • Central NJ
    • Posts 6,078
    • IIS MVPs

    Re: Host Headers and DNS settings

    1.  You would also need a corresponding CNAME entry - I have never tried this with "4 levels" though.

    2.  Exactly!

  • 12-22-2008, 8:15 AM In reply to

    • chetanrp
    • Not Ranked
    • Joined on 12-22-2008, 8:05 AM
    • Posts 2

    Re: Host Headers and DNS settings

    Hello All,

     I have windows 2003 server. In IIS i created one website as website1 of. header website1. Means in IIS i have two websites one is default web site and another one is website1.

    On default website one application is intalled and exposed on net using domain for ex. www.site1.co.uk

     Now i want to set another application on website1 and need to exposed this application on net as www.site2.co.uk. I created this domain but still this domain points to default website of IIS not to website1.

    Please tell me the setting which i need to set on IIS and on DNS.

Page 1 of 1 (12 items)