[Pdns-users] Challenge with DNS rewrite

2011-02-24 Thread Hugo van der Kooij


Hi, 

How feasable is it to create a PowerDNS caching name server
that can rewrite all requests to a specific non-existing top level
domain and strip that top level domain from the request before passing
it on towards the rest of the world? 

Due to a rather silly choise of
the powers that be there exists something called SUWI and their mail
uses a fake toplevel domain on top of existing domains. 

So my domain
vanderkooij.org would become vanderkooij.org.suwi in their view. And I
would like to setup a caching/forwarding server that would first strip
.suwi from the request and then check if the domain exists and if it
exists return that information. 

Your thoughts are welcome. 

Hugo.


-- 
hvdko...@vanderkooij.org http://hugo.vanderkooij.org/
PGP/GPG?
Use: http://hugo.vanderkooij.org/0x58F19981.asc
 ___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
http://mailman.powerdns.com/mailman/listinfo/pdns-users


Re: [Pdns-users] Challenge with DNS rewrite

2011-02-24 Thread Kenneth Marshall
On Thu, Feb 24, 2011 at 01:10:31PM +0100, Hugo van der Kooij wrote:
> 
> 
> Hi, 
> 
> How feasable is it to create a PowerDNS caching name server
> that can rewrite all requests to a specific non-existing top level
> domain and strip that top level domain from the request before passing
> it on towards the rest of the world? 
> 
> Due to a rather silly choise of
> the powers that be there exists something called SUWI and their mail
> uses a fake toplevel domain on top of existing domains. 
> 
> So my domain
> vanderkooij.org would become vanderkooij.org.suwi in their view. And I
> would like to setup a caching/forwarding server that would first strip
> .suwi from the request and then check if the domain exists and if it
> exists return that information. 
> 
> Your thoughts are welcome. 
> 
> Hugo.
> 

I think that you can do this using the lua scripting support in
the latest release of the PDNS recursor.

Cheers,
Ken
___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
http://mailman.powerdns.com/mailman/listinfo/pdns-users