Active Topics

 


Reply
Thread Tools
Posts: 187 | Thanked: 41 times | Joined on May 2010
#1
WHere can i get the repository.maemo.org range of ips ?
So i can make something like iptables -o gprs0 -A OUPUT -j DROP !

so it wont try to apt-get update while on gprs.



Is there any tool on web that i can type the hostname and get all associated ips ?
 
Posts: 515 | Thanked: 266 times | Joined on Nov 2009 @ Oelsted, Denmark
#2
Code:
$ host repository.maemo.org
repository.maemo.org is an alias for repository.maemo.org.edgesuite.net.
repository.maemo.org.edgesuite.net is an alias for a515.g.akamai.net.
a515.g.akamai.net has address 195.95.193.8
a515.g.akamai.net has address 195.95.193.9
__________________
Christian Wilken - tux-POWER.dk!
... May the Source be with You ...
 
Posts: 278 | Thanked: 303 times | Joined on Feb 2010 @ Norwich, UK
#3
Getting a full list will be tricky. Akami node assignments are more complex than simple round-robin DNS lists so you can't obtain a single full list of all addresses used.
As demonstrated by DrWilken above, a lookup from any particular location will only return a couple of IP's for the nodes closes to you. For your purposes however, just doing a few lookups from the same place and make a note of the (probably less than 10 or so) IP's you ultimately get out of it should mostly work as these will be the addresses of all the nodes closest to you, ie the ones HAM is most likely to end up using.
Of course, Akamai does change it's node's IP's occasionally.
 

The Following User Says Thank You to nidO For This Useful Post:
Posts: 2,829 | Thanked: 1,459 times | Joined on Dec 2009 @ Finland
#4
Just set update time interval to couple of thousand years

.edit
Sorry itīs not solution but at least something.
 
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#5
RIPE shows a bunch of nets registered to akamai, but even that seems incomplete (doesn't mention 92.122.0.0/15 for instance).

Besides, the stock kernel doesn't support iptables and you may want to access other akamai-hosted sites while on GPRS.

You're probably better off just adding a
Code:
127.0.0.1 repository.maemo.org
line in /etc/hosts in an if-up.d script (and removing it in a corresponding if-down.d one), but note bug 7733 (at least it's WONTFIX so you know you can rely on the broken behaviour staying broken).
 

The Following User Says Thank You to lma For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 16:27.