Created
January 5, 2013 05:28
-
-
Save keithrbennett/4459936 to your computer and use it in GitHub Desktop.
Illustrates problems I'm having using Resolv.getaddress with JRuby.
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
| # JRuby 1.7.1 on Mac OS X, java version "1.6.0_37" | |
| >rvm 1.9 | |
| >ruby -e "require 'resolv'; puts Resolv.getaddress 'cnn.com'" | |
| 157.166.255.19 | |
| >rvm jruby # 1.7.1 | |
| >ruby -e "require 'resolv'; puts Resolv.getaddress 'cnn.com'" | |
| Resolv::ResolvError: no address for cnn.com | |
| getaddress at /Users/keithb/.rvm/rubies/jruby-1.7.1/lib/ruby/1.9/resolv.rb:93 | |
| getaddress at /Users/keithb/.rvm/rubies/jruby-1.7.1/lib/ruby/1.9/resolv.rb:43 | |
| (root) at -e:1 | |
| # JRuby 1.7.0 on Linux Mint, java version "1.7.0_09": | |
| [0] 0:22 linuxmint-13-mate-32bit /home/kbennett | |
| >ruby -e "require 'resolv'; puts Resolv.getaddress 'cnn.com'" | |
| SocketError: recv: name or service not known | |
| recv_reply at /home/kbennett/.rvm/rubies/jruby-1.7.0/lib/ruby/1.9/resolv.rb:770 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment