Re: Automatic mirror selection

2008-02-05 Thread Leo "costela" Antunes
Raphael Geissert wrote: > Besides that I'm interested in how your script works at DNS level and if it > wouldn't be more suitable to just setup a server with BIND + GeoDNS[1]. That's exactly the idea, but I chose to use pdns-backend-pipe + libgeo-perl, so that I could grep the Mirrors.masterlist f

Re: Automatic mirror selection

2008-02-04 Thread Leo "costela" Antunes
Guillem Jover wrote: > You might want you use «dpkg --print-architecture» instead, so you > avoid a dependency on dpkg-dev. Good point. Cheers -- Leo "costela" Antunes [insert a witty retort here] signature.asc Description: OpenPGP digital signature

Re: Automatic mirror selection

2008-02-04 Thread Guillem Jover
On Fri, 2008-02-01 at 21:09:24 +0100, Leo costela Antunes wrote: > Adam Borowski wrote: > > Uhm, and how exactly do you get the arch? At DNS time you don't have > > anything but the requester's or his ISP's IP. > > This would have to be placed inside sources.list at some point, then I > figure th

Re: Automatic mirror selection

2008-02-03 Thread Raphael Geissert
Hi, Leo "costela" Antunes wrote: > > It's been suggested on the referred thread[0]. > I've never worked with it myself, but my limited understanding is that > it would need work from all mirror admins and even if that was feasible, > there are bound to be mirrors that are (technically, bureaucrat

Re: Automatic mirror selection

2008-02-03 Thread Leo "costela" Antunes
Hi, Raphael Geissert wrote: > > I'm not an expert on the subject, but wouldn't anycast be more suitable? > It's been suggested on the referred thread[0]. I've never worked with it myself, but my limited understanding is that it would need work from all mirror admins and even if that was feasibl

Re: Automatic mirror selection

2008-02-03 Thread Raphael Geissert
Hello, Leo "costela" Antunes wrote: > Hey there, > > As an incredibly late follow-up to this [0] small thread, I created a > small script to act as backend for pdns and return a mirror for the > user's country. > It's a simple DNS based geographic mirror selection idea. > > It works by: > - usi

Re: Automatic mirror selection

2008-02-01 Thread Leo "costela" Antunes
Adam Borowski wrote: > Ah, right. Yet at least in some cases, it could be tricky to have the arch, > so I think you would need a generic mirror anyway. I don't see any scenario where getting the arch would be tricky, do you have any in mind? Even if there is such a case, we have many mirrors that

Re: Automatic mirror selection

2008-02-01 Thread Adam Borowski
On Fri, Feb 01, 2008 at 09:09:24PM +0100, Leo costela Antunes wrote: > Adam Borowski wrote: > > Uhm, and how exactly do you get the arch? At DNS time you don't have > > anything but the requester's or his ISP's IP. > > This would have to be placed inside sources.list at some point, then I > figur

Re: Automatic mirror selection

2008-02-01 Thread Leo "costela" Antunes
Adam Borowski wrote: > you can also get a "geoip-city-lite" database which appears to be dfsg free > once you purge nondistributable parts about ISPs (city and ISP data is > intermingled in a single file). That could perhaps provide some better > resolution than just country. I thougth about this

Re: Automatic mirror selection

2008-02-01 Thread Adam Borowski
On Fri, Feb 01, 2008 at 02:38:04AM +0100, Leo costela Antunes wrote: > Hey there, > > As an incredibly late follow-up to this [0] small thread, I created a > small script to act as backend for pdns and return a mirror for the > user's country. > It's a simple DNS based geographic mirror selection