Assigning domain name to IIS site

Posted on 2011-10-04
Last Modified: 2012-06-27
Hi There,

I have recently added a new site within IIS and I can navigate fine to the site you http://localhost/IISsitename or http://webserver-name/IISsitename. When I attempt to edit the bindings via IIS and add a host name for example, '' as the host and assign it to port 1000, however when navigating to using a browser (internally) the site fails to load and I within the network. At the moment I am only wanting to access the site internally and I have also setup the DNS 'A' record and its correctly pointing to the IP address of the web server.  

Any suggestions anyone has would be greatly appreciated.

Thanks in advance.

Question by:Adma1
    LVL 15

    Expert Comment

    does telnet 1000 works?
    if not working check your firewall

    also try to ipconfig /flashdns

    Author Comment

    Ok, thsnks for the tip there shouldnt be any firewalls between the client machine snd the webserver apart from the windows firewall. I will test the telnet connection and let you know how i get on.

    LVL 30

    Accepted Solution


    1. Open the command prompt by clicking the start menu and typing “cmd” and hitting enter.
    2. Navigate to C:\Windows\System32\Inetsrv\ by typing “cd C:\Windows\System32\Inetsrv\” on the command line.
    3. In the Inetsrv folder, run the following command

       appcmd set site /"YOUR WEB SITE NAME" /+bindings.[protocol='http',bindingInformation='*']

    B. DNS lookup check
     1. Open CMD and run the following
         nslookup Does this yield your WAN IP or Local IP?
         nslookup          Does this yield your WAN IP or Local IP?

    B. Firewall Check
     1. As mentioned above, open a CMD prompt and type "telnet 1000"
        Screen go black, firewall is open.
        Screen says failed to connect, firewall is closed.
      Do this from both INTERNAL Network using the LAN IP and from an external network PC using the WAN IP.

    If i had to guess, it is a mix of split DNS meets firewall since you are using a non standard port. If this is true, you will need to create a blank A RECORD under a forward lookup zone.

    This will be a Forward lookup A Record in your local Domain zone. To create a host or "A" record:

    1. Start the DNS snap-in.
    2. Click the DNS Server object for your server in the left pane of the console, and then expand the server object to expand the tree.
    3. Expand Forward Lookup Zones.
    4. Under Forward Lookup Zones, right-click the zone that you want (for example,, and then click New Host (A).
    5. In the Name (uses parent domain name if blank) box, type the name of the host that you want to add.
       For example, if you want to add a host record for a Web server, type mysite. And In the IP address box, type the IP address
       of the host that you want to add. For example, type

    6. Select the Create associated pointer (PTR) record check box, and then click Add Host. You receive a message similar to the following:
    7. The host record was successfully created.
    8. Click OK.

    Let us know,
    LVL 77

    Expert Comment

    by:David Johnson, CD, MVP

    Author Closing Comment

    Thanks for your advise it turned out to be a firewall and DNS issue.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Article by: kevp75
    Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
    Introduction HyperText Transfer Protocol ( or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now