Mac OS X Panther FTP problem

Upgrading to Mac OS X 10.3 Panther has caused my ruby ftp script
to stop working that was working great for about a year in OS X 10.1.

When I call, in my code, @ftp.puttextfile(localname, servername),
I get the following error:

/usr/local/lib/ruby/1.8/net/ftp.rb:276:in `addr’: getnameinfo: nodename
nor servname provided, or not known (SocketError)

As you can see, I have upgraded to 1.8, thinking that this might solve
my problem.
I was incorrect. The exact same error message appeared as in the default
Ruby that ships with Panther. This problem never occurred with 10.1 (I
skipped
10.2).

However, downstairs in the kitchen, the same script runs ok on the
Windows Server2000, in both 1.8 and 1.67 Ruby

When I turn on @ftp.debug_mode=true, I can see that the ftp connection
is made correctly, and login occurs ok, and so forth. Just a problem
with
puttextfile (also with putbinaryfile, as I tried something different
to perturb
the problem)

Any thoughts you can give me would be helpful; I prefer using the mac
upstairs
to the windows downstairs, and want 1.8 to work on the Mac for ftp.

thanks!
George Girton

here is the full stack trace for any further clue…

/usr/local/lib/ruby/1.8/net/ftp.rb:276:in addr': getnameinfo: nodename nor servname provided, or not known (SocketError) from /usr/local/lib/ruby/1.8/net/ftp.rb:276:inmakeport’
from /usr/local/lib/ruby/1.8/net/ftp.rb:310:in transfercmd' from /usr/local/lib/ruby/1.8/net/ftp.rb:451:instorlines’
from /usr/local/lib/ruby/1.8/net/ftp.rb:449:in synchronize' from /usr/local/lib/ruby/1.8/net/ftp.rb:463:instorlines’
from /usr/local/lib/ruby/1.8/net/ftp.rb:554:in `puttextfile’