Hi Sebastiaan!
On Thu, 14 Mar 2002, Sebastiaan wrote:
> I am trying to trick a webserver with bind. This is the situation:
>
> - I have a domain server for sacred-key.org
> - I have a webpage which is located at www.cosjoan.box.nl, which is in
> fact a virtual host
> - I would like configure bind so that a query www.sacred-key.org brings up
> the www.cosjoan.box.nl page.
>
> I do now that it is standardly not possible, so I tried to trick a bit.
> Once I added the following two lines to my zone file:
> www IN NS www-dns
> www-dns IN CNAME ns.foo.nl.
>
> This lets the nameserver ns.foo.nl think that the query www.sacred-key.org
> was asked directly to ns.foo.nl and not via via.
>
> This is what I had in mind:
> - in the db.sacred-key zone file, redirect www to www.cosjoan.box.nl, with
> the local zone file
>
> - create a db.cosjoan.box.nl zone file
> - redirecty the www query to the ns.box.nl nameserver as if it was
> directly queried by www.cosjoan.box.nl.
>
>
> I have tried to setup something like this, but have not succeeded yet.
> Anyone willing to give this idea a thought?
why trick the webserver with bind? ever tried mod_rewrite with apache?
yours martin
--
<martin@wuertele.net> ------------------------------ NO HTML MAILS PLEASE
PGP/GPG encrypted and signed messages preferred
Attachment:
pgpgbl4BdYqVw.pgp
Description: PGP signature