Solved

LMHOSTS only working partially.

Posted on 2008-10-28
5
738 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
  • 3
  • 2
5 Comments
 
LVL 3

Accepted Solution

by:
mrwalker15 earned 250 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 250 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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

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…
Today I came across an interesting issue that had me pulling my hair out.  I was troubleshooting a new internal web site which uses integrated security instead of anonymous.  When browsing the site from my laptop, I was able to access it with no iss…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

914 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

16 Experts available now in Live!

Get 1:1 Help Now