Hi, On 2/19/08, Gunnar Wolf <[EMAIL PROTECTED]> wrote: > FWIW, thanks for implementing a great idea :) This might be specially > useful for laptop users who often connect from different countries :)
> The implementation also gives me some strange results: From my > workstation, in the 132.248. class-B, I get: > > cdn.debian.net is an alias for deb.cdn.araki.net. > deb.cdn.araki.net has address 35.9.37.225 > deb.cdn.araki.net has address 128.30.2.36 > deb.cdn.araki.net has address 204.152.191.39 > > But my closest mirror is (unsurprisingly!) 132.248.181.148 > (ftp.mx.debian.org - on a 100Mbps link from here ;-) ) If configuration added, cdn.debian.net's DNS(DNS-balance http://openlab.jp/dns_balance/dns_balance.html.en) can understand client IP address CIDR net block and AS (Autonomous System) to return appropriate mirror hosts. I patched something which includes Max-Mind geoip lookup to apply contry/continent configuration. In the near future, I will add Leo's ([EMAIL PROTECTED]) geomirror.d.n like code to generate country/continent configuration from Mirros.masterlist. However, now I have to write configuration lines for each CIDR/AS block. Anybody hope to use CIDR/AS block configuration, I would like to think system... Example of configuration lines are followings for unam.mx. $addr_db = { "133.248.0.0/16" => { # => Request from 133.248.0.0/16 # For example, DNS client's IP is # "123.45.67.89", search "123.45.67.89/32" to # "0.0.0.0/1". "deb.cdn.araki.net" => [ # This host name must be lower case character. [[133,248,181,148], 0], # => IP address and badness information. [[1,2,3,5], 10000], # Badness must be 0-10000. 0 is for fastest [[1,2,3,6], 9000], # server, and 10000 is for downed server. [[1,2,3,7], 9000], ], }, -- ARAKI Yasuhiro -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]