The following code

       require 'net/ftp'

       ftp = Net::FTP.new('www.ruby-lang.org')
       ftp.login
       ftp.chdir('pub/ruby/contrib')
       files = ftp.list('n*')

Generates

         /usr/lib/ruby/1.9/net/ftp.rb:279:in `peeraddr': getnameinfo: 
System error (SocketError)
         from /usr/lib/ruby/1.9/net/ftp.rb:279:in `sendport'
         from /usr/lib/ruby/1.9/net/ftp.rb:298:in `makeport'
         from /usr/lib/ruby/1.9/net/ftp.rb:329:in `transfercmd'
         from /usr/lib/ruby/1.9/net/ftp.rb:421:in `retrlines'
         from /usr/lib/ruby/1.9/net/ftp.rb:419:in `synchronize'
         from /usr/lib/ruby/1.9/net/ftp.rb:419:in `retrlines'
         from /usr/lib/ruby/1.9/net/ftp.rb:628:in `list'
         from t.rb:8

I've tried rebuilding with --with-lookup-order-hack=INET: made no 
difference.

Any ideas?


Cheers

Dave