IIS LocalHost name change

TechMonster
TechMonster used Ask the Experts™
on
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?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
IT/InfoSec Manager
Commented:
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-

Author

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.

Commented:
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
Acronis in Gartner 2019 MQ for datacenter backup

It is an honor to be featured in Gartner 2019 Magic Quadrant for Datacenter Backup and Recovery Solutions. Gartner’s MQ sets a high standard and earning a place on their grid is a great affirmation that Acronis is delivering on our mission to protect all data, apps, and systems.

Dean ChafeeIT/InfoSec Manager

Commented:
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-
Dean ChafeeIT/InfoSec Manager

Commented:
'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-

Author

Commented:
Thnks for the feedback everyone...

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial