0

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&gt;. However I want them to access my website by some other name like http://<acoolsite&gt;, but I don't want to rename my machine name. I am running Windows Vista. How can I get around it?

3 Answers 3

9

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.

1

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

1
  • Not necessarily. Windows and Linux can automatically expand hostnames to FQDNs. The internal DNS server can also expand local requests automatically. Jun 1, 2009 at 14:28
0

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.

You must log in to answer this question.