[Pdns-users] Domain Forwarding

Parava Networks info2 at parava.net
Tue May 16 21:03:50 UTC 2006



We have something similar, but we don't use the URL record, just the A
record. Domain is directed to the IP address and index file checks Header.
Then checks against a DB for URL to forward to.


We are actually looking for a way to do it directly from PowerDNS to the
forwarded URL, without having to go to an index page on a different server.


Can this be done?


Thank you.


Patricio Valdes



From: pdns-users-bounces at mailman.powerdns.com
[mailto:pdns-users-bounces at mailman.powerdns.com] On Behalf Of Nico van Royen
Sent: Tuesday, May 16, 2006 3:54 PM
To: pdns-users at mailman.powerdns.com
Subject: Re: [Pdns-users] Domain Forwarding


We also had some difficulty at first with the URL record and solved it on a
different way.

Basicly we put 2 records, both an A and URL record like:

www.yourdomain.com     A                        86400

www.yourdomain.com     URL     http://web.someisp.com/~myname/site   86400

The A record points to a webserver that listens on a dedicated IP. In the
webroot we placed and index.php scripts that looks for the
$_SERVER[HTTP_HOST] string in the request. It then looks into the powerdns
mysql db for the URL record and does a " header("Location: $destination"); "
to redirect the user.

Nico van Royen


From: Parava Networks [mailto:info2 at parava.net]
To: pdns-users at mailman.powerdns.com
Sent: Tue, 16 May 2006 19:18:46 +0200
Subject: [Pdns-users] Domain Forwarding

We finally made the move from Windows PowerDNS to Linux PowerDNS and we are
extremely happy. No problems so far after 5 days. Everything working as

We have tried to use FancyRecords for domain forwarding but cannot get it to
work. We set urlredirector to point to a live DNS server and still no luck.

Can anyone help us in using FancyRecords? Or better yet, what would be the
correct way to forward a domain name to another domain name?

www.domainname.com goes to www.newdomain.com

Any help is greatly appreciated.

Patricio Valdes

Pdns-users mailing list
Pdns-users at mailman.powerdns.com <javascript:kh6k0(> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20060516/4a305979/attachment-0001.html>

More information about the Pdns-users mailing list