Subject: Re: ipf or ipnat
To: None <>
From: Kevin P. Neal <>
List: netbsd-users
Date: 03/19/2001 10:10:34
On Mon, Mar 19, 2001 at 08:16:26AM +0100, wrote:
> > Subject: ipf or ipnat
> > 
> > Is there is a way I can redirect websites?
> > For example user on tries to open
> > But I want to open on his computer instead
> > Can anyone tell me how would I do that?
> the easiest way is to define in your named.conf domain
> "" with entry @ IN A < IP>

Well, yes, but that would be wrong.

One of the headers went as part of the HTTP protocol is a line naming the
host the browser wants to access. This is to allow for multiple virtual
hosts on the same IP address. If you simply add the A record as you suggest
then the browser will ask for's virtual

Configuring a web server (Apache specifically) to behave sanely when given
a request for a virtual host that server does not serve is tricky. It is also
impossible to get right in all cases if multiple sites are served from
that server.

Basically, "don't do that".

I suggested rewriting the URL and host header in a proxy for a reason.
Kevin P. Neal                      
           On the community of supercomputer fans:
"But what we lack in size we make up for in eccentricity." 
  from Steve Gombosi, comp.sys.super, 31 Jul 2000 11:22:43 -0600