New IP range - yum update sends me to far away mirror

General support questions
Post Reply
tonyds
Posts: 4
Joined: 2016/08/19 11:34:30

New IP range - yum update sends me to far away mirror

Post by tonyds » 2016/08/19 11:47:05

Hello

I have recently received a new IP assignment from our local internet registry, and since swopping to the new IP range all my servers want to download updates from Japan instead of South Africa.
I have searched the web and cannot find a solution. I have removed the timedhosts.txt - but I think the problem is related to centos thinking the IP's are based in Japan:
curl -4 --silent 'http://mirrorlist.centos.org/?release=6 ... nfra=stock'
http://mirror.fairway.ne.jp/centos/6.8/updates/x86_64/
http://www.ftp.ne.jp/Linux/packages/Cen ... es/x86_64/
http://ftp.riken.jp/Linux/centos/6.8/updates/x86_64/
http://ftp.iij.ad.jp/pub/linux/centos/6 ... es/x86_64/
http://ftp.jaist.ac.jp/pub/Linux/CentOS ... es/x86_64/
http://ftp.yz.yamagata-u.ac.jp/pub/linu ... es/x86_64/
http://ftp.tsukuba.wide.ad.jp/Linux/cen ... es/x86_64/
http://ftp.nara.wide.ad.jp/pub/Linux/ce ... es/x86_64/
http://download.nus.edu.sg/mirror/cento ... es/x86_64/
http://centos.usonyx.net/main/6.8/updates/x86_64/

Does anybody know if there is some database somewhere that I can update to specify that this new IP range is based in South Africa. I check on maxmind and it is correctly reporting South Africa as the country.

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: New IP range - yum update sends me to far away mirror

Post by avij » 2016/08/19 12:20:52

Yes, it's possible that there's some sort of a problem on the CentOS side. What is your IP address? You can send the info via PM if you don't want to disclose that information in public.

It may also be possible (although unlikely) that you are using some sort of a proxy or NAT, which changes the outgoing IP address. One way to test for that is to run curl ip.miuku.net, which should return the IP address as seen from the outside.

arrfab
Site Admin
Posts: 878
Joined: 2005/01/03 21:30:54
Location: /country/belgium
Contact:

Re: New IP range - yum update sends me to far away mirror

Post by arrfab » 2016/08/19 20:47:21

Can you test again please ? The GeoIP DB used for the mirrorlist backend was updated already (done monthly), but the in memory cache had not be "cleared" after the update.

tonyds
Posts: 4
Joined: 2016/08/19 11:34:30

Re: New IP range - yum update sends me to far away mirror

Post by tonyds » 2016/08/21 08:36:53

Hello

Just an update. All the ip's on our range are now downloading from local mirrors in South Africa. Thank you for attending to this so quickly :-)

Post Reply