Solved

IIS site working when using DNS name but not IP

Posted on 2014-04-09
6
274 Views
Last Modified: 2014-05-29
have a site running on IIS7.  We have a DNS records for it xxx pointed to the server 192.168.44.12.  When we use the DNS name to get to the server and the correct site (not default).  If we delete the host header xxx and then use the IP to connect we can do that also. But we cannot do both.  Is there a way to config IIS to accept both?
0
Comment
Question by:wannabecraig
  • 4
  • 2
6 Comments
 
LVL 29

Expert Comment

by:becraig
ID: 39988991
If I am reading you correctly you are asking:

If you can connect to the site by both IP and hostname (w/o configuring a host-header) ?

If my assumption is correct that this is what you are asking, I will need to ask one question, how many Ip's / sites are on the server in question.

Are any of the sites configured in IIS on that server set to respond on "ANY" ip ?

Why would you want to remove the host-header (Doesn't it make your life easier to have the site bound to the IP by the host header) ?
0
 
LVL 1

Author Comment

by:wannabecraig
ID: 40001507
THere is only one IP and two sites.
0
 
LVL 29

Expert Comment

by:becraig
ID: 40013752
You need host header to resolve to the site by Address since you are using one IP

IIS will see which site the request is for and forward it to that site.

So if you are hosting multiple sites, you will need to define the host you want to hit.

Since they are both using the same ip there is no real way to tell IIS which site you are trying to get to.
0
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 
LVL 29

Expert Comment

by:becraig
ID: 40035819
Are you still unclear on this ?
0
 
LVL 1

Author Comment

by:wannabecraig
ID: 40064881
Yes
0
 
LVL 29

Accepted Solution

by:
becraig earned 500 total points
ID: 40064923
Your question:
have a site running on IIS7.  We have a DNS records for it xxx pointed to the server 192.168.44.12.  When we use the DNS name to get to the server and the correct site (not default).  If we delete the host header xxx and then use the IP to connect we can do that also. But we cannot do both.  Is there a way to config IIS to accept both?

Short answer:
NO

You will not be able to call the site by ip if you have more than one site bound to that IP (that is the idea behind host headers)
You CANNOT have two sites on one IP and expect to call each site by IP (how do you expect IIS to know which site you need to access.

Once you have more than one site bound to one ip host headers is the only way to get proper functionality.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Here are the symptoms: You start receiving calls from users that one of your legacy web apps isn't coming up, so you log into your IIS 5 server to check it out.  When you pull up the services, you notice that the WWW Publishing service isn't runn…
Logparser is the smartest tool I have ever used in parsing IIS log files and there are many interesting things I wanted to share with everyone one of the  real-world  scenario from my current project. Let's get started with  scenario - How do w…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

867 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

23 Experts available now in Live!

Get 1:1 Help Now