From: "obrien.andrew@..." Date: 2006-09-28T05:00:13+09:00 Subject: Re: Bonjour and Socket::getaddrinfo Hi Gary, What was the value of your "host" variable in that line? "radar" or "radar.local"? I can get mine to work if I do Socket::getaddrinfo("monkeydrome.local", nil), but not with just "monkeydrome" (which is how Socket::gethostname returns it). gwtmp01@mac.com wrote: > On Sep 27, 2006, at 3:05 PM, obrien.andrew@gmail.com wrote: > > > 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: > > Strange. This worked just fine for me (Mac OS X 10.4.7, Ruby 1.8.5). > > Here is what I get calling getaddrinfo without the extra params: > > irb(main):008:0* info = Socket::getaddrinfo(host, nil) > => [["AF_INET6", 0, "radar.local", "fe80::203:93ff:fe96:4cb4%en0", > 30, 2, 17], ["AF_INET6", 0, "radar.local", "fe80::203:93ff:fe96:4cb4% > en0", 30, 1, 6], ["AF_INET", 0, "10.0.1.2", "10.0.1.2", 2, 2, 17], > ["AF_INET", 0, "10.0.1.2", "10.0.1.2", 2, 1, 6]] > irb(main):009:0> info = Socket::getaddrinfo('localhost', nil) > => [["AF_INET6", 0, "localhost", "::1", 30, 2, 17], ["AF_INET6", 0, > "localhost", "::1", 30, 1, 6], ["AF_INET", 0, "localhost", > "127.0.0.1", 2, 2, 17], ["AF_INET", 0, "localhost", "127.0.0.1", 2, > 1, 6]] > > Gary Wright