I have recently configured a Win Server 2003 box as a development web server
on my small home based LAN behind an ADSL modem/router/firewall. All boxes on
my LAN have fixed internal IP addresses. Under IIS 6 I have created 4 web
sites. All share the same internal IP number. My router is configured to
route all external traffic coming in to my public IP address to my web
server. All my public web site names will resolve to the same external IP
address. Initially, I do not want to set up my own DNS server. I want to use
the Hosts file on my XP Pro to resolve the web site requested by my browser
IE 7. Firstly, I configured Hosts to resolve the first web site with an entry
[192.168.10.2 example.co.uk] and this works fine if I type in
example.co.uk as the url. But when I try [192.168.10.2 www.example.co.uk]
this does not work. Neither does it work if I substitute the external
address. As I understand from the various explanations on this topic, my
browser will try to resolve using Hosts before going off to find a DNS
server. Have I misunderstood? I want to type in www.example.co.uk and let
Hosts resolve to my web server without going out to DNS. I do intend to set
up my own DNS but I want to flog Hosts a bit first!