?
Solved

IIS site working when using DNS name but not IP

Posted on 2014-04-09
6
Medium Priority
?
294 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Does Your Cloud Backup Use Blockchain Technology?

Blockchain technology has already revolutionized finance thanks to Bitcoin. Now it's disrupting other areas, including the realm of data protection. Learn how blockchain is now being used to authenticate backup files and keep them safe from hackers.

 
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 2000 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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses

719 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