S3 CNAMEs causing lookup problems in windows
I'm building some new servers running rubygems in a cygwin environment. This is a well documented process to us which is no longer functional. When trying to run gem sources -u --debug, I get this (among other errors):
Exception `Gem::RemoteFetcher::FetchError' at /usr/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb:172 - SocketError: getaddrinfo: no address associated with hostname. (http://gems.rubyforge.org/specs.4.8.gz)
After some troubleshooting I discovered that the name above redirects to production.s3.rubygems.org, which is a CNAME that points to a CNAME that points to a CNAME that points to an A record. I cannot get this to resolve in cygwin, in the dos command prompt, or in internet explorer.
However, if I put a hosts file entry in that points
production.s3.rubygems.org directly to the IP in the A record the
gem utility runs without any issues. Take the hosts file entry back
out, everything is broken again. My guess is that this is an issue
with the windows resolver refusing to follow that many levels of
indirection.
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by James Tucker on 18 Feb, 2010 12:09 PM
I think it's related to specific resolver settings or dns server that you're using.
Support Staff 3 Posted by Nick Quaranto on 13 Mar, 2010 06:41 PM
We've heard several reports of problems like this on Windows...however, there's no solid leads about trying to resolve it yet.
Support Staff 4 Posted by Eric Hodel on 15 Mar, 2010 07:39 AM
Hrm, I wonder if require 'resolv-replace' would fix it.
You could test with:
ruby -rresolv-replace -S gem ...
Support Staff 5 Posted by Nick Quaranto on 18 Mar, 2011 09:02 PM
No idea what this is about or why it's happening, and I haven't heard reports of this lately. Closing this out.
Nick Quaranto closed this discussion on 18 Mar, 2011 09:02 PM.