maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   IP range of repository.maemo.org (https://talk.maemo.org/showthread.php?t=62865)

colchaodemola 2010-09-24 18:10

IP range of repository.maemo.org
 
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 ?

DrWilken 2010-09-24 18:16

Re: IP range of repository.maemo.org
 
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


nidO 2010-09-24 18:23

Re: IP range of repository.maemo.org
 
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.

slender 2010-09-24 18:25

Re: IP range of repository.maemo.org
 
Just set update time interval to couple of thousand years :)

.edit
Sorry itīs not solution but at least something.

lma 2010-09-24 19:41

Re: IP range of repository.maemo.org
 
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).


All times are GMT. The time now is 00:58.

vBulletin® Version 3.8.8