Socket::gethostbyname doesn't work correctly
--------------------------------------------

                 Key: JRUBY-5817
                 URL: http://jira.codehaus.org/browse/JRUBY-5817
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.6.1
         Environment: $ uname -a
Linux dtavm0 2.6.37.6-0.5-desktop #1 SMP PREEMPT 2011-04-25 21:48:33 +0200 
x86_64 x86_64 x86_64 GNU/Linux
$ java -version
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.7) (suse-1.2.1-x86_64)
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)
$ java -jar jruby-complete-1.6.1.jar -v
jruby 1.6.1 (ruby-1.8.7-p330) (2011-04-12 85838f6) (OpenJDK 64-Bit Server VM 
1.6.0_20) [linux-amd64-java]

            Reporter: Danijel Tasov


$ java -jar jruby-complete-1.6.1.jar -rsocket -e 'p Socket.gethostname; p 
Socket.gethostbyname(Socket.gethostname)'
"dtavm0"
["127.0.0.2", [], 2, "\177\000\000\002"]
$ ruby -rsocket -e 'p Socket.gethostname; p 
Socket.gethostbyname(Socket.gethostname)'
"dtavm0"
["dtavm0.company.example.com", ["dtavm0"], 2, "\177\000\000\002"]

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to