IIS LocalHost name change

Is there anyway to change the "LocalHost" to a more defined name on a IIS Intranet server?
So instead on http:\localhost\wfm can I change it to http:\\wfm?
TechMonsterAsked:
Who is Participating?
 
Dean ChafeeConnect With a Mentor IT/InfoSec ManagerCommented:
This is a DNS issue.  
Let's assume your server has IP addr 192.168.10.10

You can put a static host entry in your DNS server with the name wfm pointing to 192.168.10.10, but it will be a host within the zone that you create it in... example http://wfm.mydomain.com

You can also put a static entry in your HOSTS file (c:\winnt\system32\drivers\etc\hosts) like this:
192.168.10.10     wfm

The hosts file will let you use http://wfm      however, only from the local machine, which is what I assume you are looking for.
FS-
0
 
TechMonsterAuthor Commented:
My computer IP is 10.186.4.74...have modified the file to show
10.186.4.74  wfm.

Still fails..
Need everyone on the Intranet to be able to type http:\\wfm  to get page.

Works great with Localhost..or with my ip......DNS..don't have one...THe IIS machine is not actually on the NET.  
Creating some sort of virtual webpage.
0
 
harperseCommented:
Changing the HOSTS file won't replicate the change to other machines.  You will have to go the DNS route prescribed above.

Best of luck,
harperse
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
Dean ChafeeIT/InfoSec ManagerCommented:
The only way for all on your intranet to use http://wfm is to deploy a DNS server and create a host entry (A record) called wfm with the IP of 10.186.4.74 in your default/primary zone.   Then, assuming your clients are configured to "Append primary DNS suffixes", a request to http://wfm will resolve to wfm.yourdomain.com at 10.186.4.74.
Hope this makes sense...

If you are on an older network using WINS, I think it is possible to create a static entry in WINS pointing to the IP. So the question is, if you don't have and intranet DNS, how are your intranet machine names resolved to an IP?
FS-
0
 
Dean ChafeeIT/InfoSec ManagerCommented:
'nother possible solution...
you can add the same entry in the HOSTS file on every user machine, but this is a management nightmare if your have more than a few client machines.
FS-
0
 
TechMonsterAuthor Commented:
Thnks for the feedback everyone...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.