ruby - Can't resolve rubygems.org (too many redirects) -
for reason vagrant vm cannot resolve rubygems.org
. working fine yesterday, today made no changes , no longer works:
fresh unbuntu install
vagrant -v # 1.5.3 vagrant init hashicorp/precise64 # ubuntu vagrant vagrant ssh
installing ruby gems (fails)
sudo apt-get update sudo apt-get install rubygems -y # here comes failure... sudo gem install librarian-puppet "error: not find valid gem 'librarian-puppet' (>= 0) in repository error: while executing gem ... (gem::remotefetcher::fetcherror) many redirects (http://www1.dlinksearch.com/?..."
can't resolve rubygems.org
wget rubygems.org "resolving rubygems.org (rubygems.org)... ::ffff:67.215.65.145, 54.245.255.174 connecting rubygems.org (rubygems.org)|::ffff:67.215.65.145|:80... connected. http request sent, awaiting response... 303 see other location: http://www1.dlinksearch.com/?url=rubygems%2eorg [following] --2014-04-23 02:28:15-- http://www1.dlinksearch.com/?url=rubygems%2eorg resolving www1.dlinksearch.com (www1.dlinksearch.com)... ::ffff:67.215.65.145, 20 redirections exceeded."
other websites seem fine
wget google.com resolving google.com (google.com)... 173.194.126.8, 173.194.126.14, 173.194.126.2, ... http request sent, awaiting response... 200 ok 2014-04-23 02:36:57 (651 kb/s) - `index.html.2' saved [13872]
i can resolve ip address
wget 54.245.255.174 --2014-04-23 02:44:59-- http://rubygems.org/ resolving rubygems.org (rubygems.org)... ::ffff:67.215.65.145, 54.245.255.174 http request sent, awaiting response... 200 ok
more info
gem env - rubygems version: 1.8.15 - ruby version: 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] ... - remote sources: - http://rubygems.org/
it working
- this working fine yesterday night!
- the vm /etc/hosts seems fine
- i can access rubygems.org desktop browser without issues
- already tried destroying , creating new vm
- tried restarting computer
so comments, apparently there dns caching issue, "::ffff:67.215.65.145" coming valid address rubygems. "54.245.255.174" valid address, dig @8.8.8.8 rubygems.org
reveal.
Comments
Post a Comment