?
Solved

LMHOSTS only working partially.

Posted on 2008-10-28
5
Medium Priority
?
746 Views
Last Modified: 2011-10-19
In order to test recognition of different domains/hosts in a web application, I wanted to use LMHOSTS to have my local IIS 7 react to different URLs. Only the default web site is configured - all those URLs are supposed to be handled by the same application.

I have, for example, the domains alstest1.de and alstest2.de (read: Al's Test One and Al's Test Two). The LMHOSTS entries for alstest1.de, www.alstest1.de, alstest2.de and www.alstest2.de all work properly and redirect to localhost.

The other entries (www.vanitytest1.de, client1.alstest1.de) do not. What could I be doing wrong? I'm especially confused as the urls mentioned above work fine, even when I change the order in the LMHOSTS file...

Please help.

lmhosts
0
Comment
Question by:softwareservice
[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
  • 3
  • 2
5 Comments
 
LVL 3

Accepted Solution

by:
mrwalker15 earned 1000 total points
ID: 22823943
Why dont you use dns instead of netbios?

you should change the hosts file instead.
0
 
LVL 1

Author Comment

by:softwareservice
ID: 22824405
Because apparantly I don't know better. Could you point me in the right direction, please? TIA!
0
 
LVL 3

Assisted Solution

by:mrwalker15
mrwalker15 earned 1000 total points
ID: 22824435
Under c:\windows\system32\drivers\etc\ you have a file called hosts.

Insert all the entries and Ip addresses that you need.

after that, run from command prompt.

ipconfig /flushdns
0
 
LVL 1

Author Comment

by:softwareservice
ID: 22825235
The HOSTS file worked. Thank you!
0
 
LVL 1

Author Closing Comment

by:softwareservice
ID: 31510835
Thanks a lot!
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
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…

777 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