I was having a problem with DRb coming from Socket::getaddrinfo not
finding an address for the name returned by Socket::gethostname.  I'm
running Mac OS 10.4 and Ruby 1.8.  Replicating line 837 in drb.rb in
irb gave me this:

irb(main):001:0> require 'socket'
=> true
irb(main):002:0> host = Socket::gethostname
=> "monkeydrome"
irb(main):003:0> Socket::getaddrinfo(host, nil,Socket::AF_UNSPEC,
irb(main):004:1*                                   Socket::SOCK_STREAM,

irb(main):005:1*                                   0,
irb(main):006:1*                                   Socket::AI_PASSIVE)
SocketError: getaddrinfo: No address associated with nodename
        from (irb):3:in `getaddrinfo'
        from (irb):3
        from :0

And if I add my Bonjour share name to /etc/hosts (as "127.0.0.1
monkeydrome"), I get the correct response ([["AF_INET", 0, "localhost",
"127.0.0.1", 2, 1, 6]]).  Is there a way to get the correct address
information without changing /etc/hosts?

Thanks,
Andrew O'Brien