Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

can't get host header site working

  • 30-11-2011 06:24PM
    #1
    Registered Users, Registered Users 2 Posts: 1,000 ✭✭✭


    I have a Virtual Server running on VirtualBox.
    • Windows Server 2008 R2
    • IIS 7.5
    • App and Web server
    • AD Domain Services
    • DNS server
    Settings:
    • Computer name: SP2010Server
    • Full name: SP2010Server.SPLab.local
    • Domain: SPLab.local
    • IP4 Address: 192.168.56.2
    Via IE I can successfully get to local web sites (all at port 80):
    I've created a website in IIS with these bindings:
    • host header: mysites.splab.local
    • port: 80
    • ip address: 192.168.56.2

    IE says it cannot display the webpage. Am I missing a step. Do I need to register the host header with the DNS server? :confused:

    It works if I add the url to the HOSTS file on the VM and the host machine
    192.168.56.2 mysites.splab.local


Comments

  • Registered Users, Registered Users 2 Posts: 8,814 ✭✭✭BaconZombie


    Have you added mysites.splab.local to your DNS Server?

    Also what is the output from:
    
     nslookup mysites.splab.local
    
    


  • Registered Users, Registered Users 2 Posts: 1,000 ✭✭✭MargeS


    Hi BaconZombie
    When I do NSLookup, I get:

    > nslookup mysites.splab.local
    Server: mysites.splab.local.SPLab.local
    Address: 192.168.56.2

    *** mysites.splab.local can't find nslookup: Non-existent domain


    I added mysites.splab.local as a Record A to my DNS server


  • Registered Users, Registered Users 2 Posts: 1,000 ✭✭✭MargeS


    OK, I added this as a new domain in DNS and it works. But I thought it was supposed to be a A Record or CNAME. So maybe my Domain is setup incorrectly. More reading to do I guess....


Advertisement