[Pdns-users] Fwd: [afnog]Mirroring a website

bert hubert ahu at ds9a.nl
Sat Nov 29 16:36:01 UTC 2003

On Thu, Oct 30, 2003 at 10:12:52AM +0100, Stephane Bortzmeyer wrote:
> Is there already a PowerDNS backend implementing the idea described
> here, by using a hand-configured list of prefixes ? Or by using the
> BGP table :-)

I once had this up and running and it worked just fine. In fact, you will
find that the pipe backend is set up to make this easily possible. It passes
the IP address of the question to your backend, which might be written in

Good luck!

> > We have a website that is very slow when loading from foreign parts of the
> > Internet.  We would like to mirror it so that both foreign and local viewers
> > are able to get a good speed.  The part of synchronizing the website data
> > between two servers seems to be ok.  However,  how does the DNS work for
> > mirror sites?
> You can put two A records for www.example.net but the load will be
> shared more or less evently between them. 
> If you really want the local clients to use the local copy and the
> foreigners to use the international one, you have several options,
> none of them easy:
> 1) You can create two names, www.example.net and www.local.example.net
> and rely on clients to choose wisely the closest copy (netselect may
> help them). This does not work when they just select a link in a Web
> page. It is very common for huge FTP servers (ftp.fr.debian.org,
> ftp.de.debian.org, etc but do note that geographic names like these do
> not work well in Africa where the national interconnection is often
> inexistant).
> 2) Use the above + an Apache module that will redirect to the closer
> copy. I wrote such a module once and it works fine *if* "local" can be
> translated as a small set of IP addresses (say, a few prefixes for the
> country).
> 3) Use a smart DNS server like PowerDNS <URL:http://www.powerdns.com/>
> with a custom backend (I don't think it exists, you will have to write
> one) that sends a different reply according to the IP address of the
> client. Same remark as above.
> __________________________________________________
> This is the Africa Network Operators' Group(AfNOG) 
> technical discussion list.
> The AfNOG website is: <http://www.afnog.org>
> Archive :<http://archives.afnog.org>

> _______________________________________________
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com
> http://mailman.powerdns.com/mailman/listinfo/pdns-users

http://www.PowerDNS.com      Open source, database driven DNS Software 
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO

More information about the Pdns-users mailing list