Re: [update] Automatic mirror selection - feedback appreciated

2008-02-20 Thread Theppitak Karoonboonyanan
On Wed, Feb 6, 2008 at 4:13 AM, Leo costela Antunes <[EMAIL PROTECTED]> wrote: > One possible improvement would be fetching information from DMC[1] to > help the prioritizing of hosts based on freshness (this could also help > avoid temporarily downed mirrors). This would be much help for Thai

Re: [update] Automatic mirror selection - feedback appreciated

2008-02-13 Thread Leo "costela" Antunes
Leo "costela" Antunes wrote: > I don't think it's a cache problem on PDNS, firstly because it doesn't > seem to be caching anything (based on log output) and secondly because > the answer is changing between requests inside a small time-frame. But I > could be wrong. Thanks to the help of Michal C

Re: [update] Automatic mirror selection - feedback appreciated

2008-02-06 Thread Leo "costela" Antunes
[setting MFT to avoid OT discussion on -mirror] Raphael Geissert wrote: > PD. What do you think about adding a built-in list of addresses which 'work' > for OpenDNS so they are excluded and some kind of http redirection is used > instead? It's a possibility, but I had envisioned something simpler

Re: [update] Automatic mirror selection - feedback appreciated

2008-02-06 Thread Leo "costela" Antunes
Michal Čihař wrote: > This server was the place where I tried the lookup and it is really in > Czech. It has own DNS server which does not use any proxy and I flushed > it's cache before each attempt. Just tested it again to be sure: [snip] > Okay let's try it also another way - ask directly your

Re: [update] Automatic mirror selection - feedback appreciated

2008-02-05 Thread Michal Čihař
Hi On Wed, 6 Feb 2008 02:18:10 +0100 Adam Borowski <[EMAIL PROTECTED]> wrote: > geoip is not perfect, but a glance at your mail headers suggest that there > may be some confusion from another source. > > Received: from mort.cihar.com (mort.cihar.com [82.208.50.189]) > by liszt.debian.org

Re: [update] Automatic mirror selection - feedback appreciated

2008-02-05 Thread Adam Borowski
On Wed, Feb 06, 2008 at 08:57:52AM +0900, Michal Čihař wrote: ^ > Dne Tue, 05 Feb 2008 22:13:48 +0100 > "Leo \"costela\" Antunes" <[EMAIL PROTECTED]> napsal(a): > > > The -geomirror.d.n addresses are manually added CNAMEs to a > > PowerDNS server that manages

Re: [update] Automatic mirror selection - feedback appreciated

2008-02-05 Thread Michal Čihař
Hi Dne Tue, 05 Feb 2008 22:13:48 +0100 "Leo \"costela\" Antunes" <[EMAIL PROTECTED]> napsal(a): > The -geomirror.d.n addresses are manually added CNAMEs to a > PowerDNS server that manages the zone geomirror.angband.pl (helpfully > loaned by Adam Borowski). This server is running pdns-backend-pip

Re: [update] Automatic mirror selection - feedback appreciated

2008-02-05 Thread Raphael Geissert
Hello, Leo "costela" Antunes wrote: > > Another minor problem is that the use of some DNS resolver that's not on > the same country as the user (OpenDNS, for instance) will result in a > incorrect guess by the server. Thanks for the clarification, I was about to say that it failed to detect my c

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

[update] Automatic mirror selection - feedback appreciated

2008-02-05 Thread Leo "costela" Antunes
Hi, Thanks to the help of Adam Borowski we now got a working solution for an automatic mirror selection scheme. Please help us test this infrastructure so that I can convince the DSA to add it to our servers or at least give us a delegation from a debian.{net,org} subzone! ;) Again: I have no

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

Automatic mirror selection

2008-01-31 Thread Leo "costela" Antunes
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: - using logic based on D-I to select a mirror from a copy of