Last active
August 29, 2015 14:11
-
-
Save sime/5717aa8e5683464661c2 to your computer and use it in GitHub Desktop.
o2 resolving Google CDN static content
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# o2 ADSL, Berlin Mitte | |
# Using cURL, fetch the jQuery library within ten seconds. | |
$ curl -m 10 http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.js > /dev/null | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
0 0 0 0 0 0 0 0 --:--:-- 0:00:09 --:--:-- 0 | |
curl: (28) Connection timed out after 10005 milliseconds | |
# Content from ajax.googleapis.com (and fonts.googleapis.com) time out! | |
# Let's check the DNS. | |
$ dig a fonts.googleapis.com +short @192.168.1.1 | |
googleapis.l.google.com. | |
173.194.65.95 | |
# Try cURL again without DNS, and hit the IP directly. | |
$ curl -m 10 -H 'Host: ajax.googleapis.com' http://173.194.67.95/ajax/libs/jquery/2.1.3/jquery.js > /dev/null | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 241k 0 241k 0 0 782k 0 --:--:-- --:--:-- --:--:-- 784k | |
# It works! So why does hitting the IP directly work, but looking up the domain fail? | |
# I have been using o2 since September 27 and have had the problem since day one. | |
# Previously I thought using Google DNS solved the problem, but I got the best | |
# results by hard coding Google IPs in my host file. But this does not scale. | |
# See previous Twitter conversations. https://twitter.com/search?f=realtime&q=from%3Asimonmales%20to%3Ao2de&src=typd | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment