I'm looking forward to the answer to this question, I had the
same getaddrinfo error on Mac OS 10.3 last month. Except it
was with the Net ftp object rather than SMPT as in your case.
Works fine on Windows, and no idea how to debug it. (Debug mode
shows connection being made ok)

cheers!
George Girton
 
On Wednesday, December 03, 2003, at 01:11PM, Zach Dennis <zdennis / mktec.com> wrote:

>I am moving my ruby program file from my winbox to my linux( redhat 9 ) box.
>I've got ruby 1.8.1 installed on my linux box. However when I run my script
>the following lines error out:
>
>smtp = Net::SMTP::new( server )
>smtp.start( domain , username , password , "cram_md5" )
>
>It complains about:
>
>/usr/local/lib/ruby/1.8/net/protocol.rb:83:in 'initialize': getaddrinfo:
>Name or service not known( SocketError )
>	from /usr/local/lib/ruby/1.8/net/protocol.rb:83:in 'new'
>	from /usr/local/lib/ruby/1.8/net/protocol.rb:83:in 'connect'
>	from /usr/local/lib/ruby/1.8/net/protocol.rb:82:in 'timeout'
>	etc...etc...etc...
>
>It works beautifully on my Windows box. Any ideas?
>
>Zach
>
>
>
>