Forum: Ruby on Rails Socket#getaddrinfo works in console but not in server

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Zac Z. (Guest)
on 2009-03-17 14:36
I am experiencing a strange problem with Socket#getaddrinfo. It
correctly resolves IPs into hostnames while in console mode, but does
not when run in server mode.

When in server mode, it simply returns the original IP unresolved.

Can anyone comment on this behaviour?

Much thanks
Zac
Zac Z. (Guest)
on 2009-03-18 11:33
Zac Z. wrote:
> I am experiencing a strange problem with Socket#getaddrinfo. It
> correctly resolves IPs into hostnames while in console mode, but does
> not when run in server mode.
>
> When in server mode, it simply returns the original IP unresolved.
>
> Can anyone comment on this behaviour?
>
> Much thanks
> Zac

Since it's annoying reading a coding problem without code, I have made a
pastie:
http://pastie.org/419562

Any help will be gratefully received.

Zac
This topic is locked and can not be replied to.