Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

This is a non-programming question. I'm running IIS on my machine and allowing people to access a website on my machine by making them type http://<mymachinename>. However I want them to access my website by some other name like http://<acoolsite>, but I don't want to rename my machine name. I am running Windows Vista. How can I get around it?

share|improve this question
add comment

3 Answers

The easiest way is to use a CNAME in DNS. Failing that (if a central DNS is not available), they'd have to make an entry in their HOSTS file to your direct IP address.

share|improve this answer
add comment

Since you are not using fully qualified domain names (something.something.com), I'm going to assume you do not have DNS running. In that case, edit the HOSTS file on each client computer and add an entry for your new name

c:\windows\system32\drivers\etc\hosts

You may have to create this file and be sure that you don't have the ".txt" on the end. There is typically a hosts.sam file created by windows as a sample you can rename. Add a line like:

192.168.1.50 acoolsite

Where the IP address is the IP address of your system

share|improve this answer
    
Not necessarily. Windows and Linux can automatically expand hostnames to FQDNs. The internal DNS server can also expand local requests automatically. –  grawity Jun 1 '09 at 14:28
add comment

Register a domain name and point it to your IP address. If you have a static IP you can use http://www.no-ip.com/ to keep your domain in sync.

Be aware that accessing your website inside the network may not work without some configuration.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.