Subject: IPNAT weirdness
To: None <netbsd-help@netbsd.org>
From: Oliver O. Fross <oof@oof.org>
List: netbsd-help
Date: 07/07/1999 20:37:05
Hello All-

	I've got a strange scenario that I can't quite explain.  Perhaps y'all
can help?  I am running IPNAT at home for my 5 computer network, and when
I go to certain hosts (using DNS names or IP addresses) my web browser
of choice (netscape/lynx) displays serverroot from my local http server.
httpd runs on machine "gateway" below.
(both machines in question are NetBSD 1.4 / i386)

Scenario 1:

	client on internal machine asks for www.imagehost.com
	request for web page goes through internal network to gateway, 
	and hopefully out onto the real internet
	client recv's serverroot document from httpd running on gateway
	Bummer!

To see if it is my internal network, or somewhere else, I present:

Scenario 2:

	client on gateway machine asks for www.imagehost.com
	BINGO! The correct host: www.imagehost.com shows up.

Here is my ipnat.conf file:

map de0 192.168.1.0/24 -> 209.233.18.222/32 portmap tcp/udp 10000:65000
rdr de0 209.233.18.222/32 port 4444 -> 192.168.1.44 port 23
rdr de0 209.233.18.222/32 port 21 -> 192.168.1.44 port 21

Here are the nslookup results:
  gateway% nslookup imagehost.com
  Server:  localhost
  Address:  127.0.0.1
  Name:    imagehost.com
  Address:  208.249.121.36

    internal machine%  nslookup imagehost.com
    Server:  gateway.mydomain.com
    Address:  192.168.1.251
    Non-authoritative answer:
    Name:    imagehost.com
    Address:  208.249.121.36

Note:  This happens for select few other domains, but I can't remember what
they are right now.

What on earth could be causing this strange behavior?  Hints & Questions
welcome.

TIA.
--oliver.