S3 CNAMEs causing lookup problems in windows

Mark Bainter's Avatar

Mark Bainter

17 Feb, 2010 09:57 PM

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.

  1. Support Staff 2 Posted by James Tucker on 18 Feb, 2010 12:09 PM

    James Tucker's Avatar
    C:\Documents and Settings\Administrator>nslookup gems.rubyforge.org
    *** Can't find server name for address 10.211.55.1: Non-existent domain
    *** Default servers are not available
    Server:  UnKnown
    Address:  10.211.55.1
    
    Non-authoritative answer:
    Name:    gems.rubyforge.org
    Address:  72.4.120.124
    

    I think it's related to specific resolver settings or dns server that you're using.

  2. Support Staff 3 Posted by Nick Quaranto on 13 Mar, 2010 06:41 PM

    Nick Quaranto's Avatar

    We've heard several reports of problems like this on Windows...however, there's no solid leads about trying to resolve it yet.

  3. Support Staff 4 Posted by Eric Hodel on 15 Mar, 2010 07:39 AM

    Eric Hodel's Avatar

    Hrm, I wonder if require 'resolv-replace' would fix it.

    You could test with:

    ruby -rresolv-replace -S gem ...

  4. Support Staff 5 Posted by Nick Quaranto on 18 Mar, 2011 09:02 PM

    Nick Quaranto's Avatar

    No idea what this is about or why it's happening, and I haven't heard reports of this lately. Closing this out.

  5. Nick Quaranto closed this discussion on 18 Mar, 2011 09:02 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

29 Aug, 2014 06:23 PM
28 Aug, 2014 07:18 PM
27 Aug, 2014 12:03 PM
26 Aug, 2014 07:09 PM
26 Aug, 2014 07:07 PM