Situation: I had setup a webserver at home. I used dyndns.org to
setup a dns resolution for my new server as it was on a dynamic IP. I
used their dns updater client to update my dynamic IP. I forwared port
80 on the router to the webserver.
Symptom: This worked just fine for the rest of the world but not for
the computers on my personal network behind the router. They always
resolved to the router but the router only forwards external requests
not internal. Poo! I think newer routers are getting smarter about
this. My friend claims his forwards both internal and external.
Solution: Create a private zone by editing the hosts file(not
lmhosts!) on the client machines. As I only have one webserver and not
many computers on my network I prefer this to setting up a DNS server.
On my Windows XP computer the file was located at
%system%\system32\drivers\etc\hosts. I just added the IP then a space
and then the domain name at the end of the file.
192.168.2.3 www.example.com