Getaddrinfo: Name or service not known (SocketError) in net/ftp

boron e$B$G5$$,$D$$$?$N$G$9$,!"e(Bnet/ftp e$B$Ge(B login e$B$N$H$-$Ke(B
SocketError e$B$K$J$j$^$9!#e(B

% ./ruby -rnet/ftp -e ’
ftp = Net::FTP.open(“ftp.ruby-lang.org”)
ftp.login

/home/akr/chkbuild/tmp/build/ruby-trunk/20091009T105800/lib/ruby/1.9.1/net/ftp.rb:369:in
gethostbyname': getaddrinfo: Name or service not known (SocketError) from /home/akr/chkbuild/tmp/build/ruby-trunk/20091009T105800/lib/ruby/1.9.1/net/ftp.rb:369:ingetaddress’
from
/home/akr/chkbuild/tmp/build/ruby-trunk/20091009T105800/lib/ruby/1.9.1/net/ftp.rb:392:in
login' from -e:3:in

e$B8=>]$O!“e(BSocket.gethostname [email protected]$?%[%9%HL>e(B (e$B:#2s$N>l9ge(B
“boron”) e$B$re(B Socket.gethostbyname e$B$KEO$7$F!”$=$l$,e(B
SocketError e$B$K$J$C$F$$$k$H$$$&$b$N$N$h$&$G$9!#e(B

e$B$D$^$je(B /etc/hosts e$B$Ke(B boron e$B$,:$C$F$$$J$$$o$1$G$9!#e(B

e$B$G!"$3$&$$$&%[%9%H$OB>$K$b$"[email protected]$k$N$G!$:$C$F$$$J$/$F$bF0$/e(B
e$B$h$&$K$7$?$i$$$$$s$8$c$J$$$+$J$!!"$H;W$&$s$G$9$,$I$&$G$7$g$&e(B?

e$BA0ED$G$9!#e(B

2009e$BG/e(B10e$B7ne(B9e$BF|e(B13:23 Tanaka A. [email protected]:

boron e$B$G5$$,$D$$$?$N$G$9$,!“e(Bnet/ftp e$B$Ge(B login e$B$N$H$-$Ke(B
SocketError e$B$K$J$j$^$9!#e(B
(snip)
e$B$G!”$3$&$$$&%[%9%H$OB>$K$b$"[email protected]$k$N$G!$:$C$F$$$J$/$F$bF0$/e(B
e$B$h$&$K$7$?$i$$$$$s$8$c$J$$$+$J$!!"$H;W$&$s$G$9$,$I$&$G$7$g$&e(B?

e$B;d$b$=$&;W$$$^$9!#e(B

Pythone$B$Ne(Bftplib.pye$B$G$O$I$&$J$C$F$$$k$+$J$H;W$C$F8+$F$_$?$H$3$m!"0J2<$N$h$&$K$J$C$F$$$^$7$?!#e(B

    if user == 'anonymous' and passwd in ('', '-'):
        # If there is no anonymous ftp password specified
        # then we'll just use [email protected]
        # We don't send any other thing because:
        # - We want to remain anonymous
        # - We want to stop SPAM
        # - We don't want to let ftp sites to discriminate by the 

user,
# host or country.
passwd = passwd + ‘[email protected]

Net::FTPe$B$N$h$&$KJQ$K$,$s$P$C$F$b$I$&$;M-8z$J%"%I%l%9$K$J$i$J$$$3$H$,B?$$$G$7$g$&$7!“e(B
e$BF1$8$h$&$K$7$F$7$^$C$F$b$h$$$G$7$g$&$+!#e(B
e$B$”$H!"e(B1.8e$B$OJQ$($J$$J}$,$$$$$G$9$+$M!#e(B

In article
[email protected],
Shugo M. [email protected] writes:

Net::FTPe$B$N$h$&$KJQ$K$,$s$P$C$F$b$I$&$;M-8z$J%"%I%l%9$K$J$i$J$$$3$H$,B?$$$G$7$g$&$7!"e(B
e$BF1$8$h$&$K$7$F$7$^$C$F$b$h$$$G$7$g$&$+!#e(B

e$B$^$!!"$b$O$dC/$b8+$F$J$$5$$,$7$^$9$7$M$’!#e(B

e$B$"$H!"e(B1.8e$B$OJQ$($J$$J}$,$$$$$G$9$+$M!#e(B

boron e$B$G:F8=$7$J$/$J$C$F!"3NG’$G$-$J$/$J$C$A$c$C$?$s$G$9$,!“e(B
(resolv.conf e$B$Ke(B search e$B$,$D$$$?e(B?)
e$B$b$7Nc30$K$J$C$Fe(B login e$B$G$-$J$$$J$i!”$=$NBP=h$Oe(B 1.8
e$B$G$b$d$Ce(B
e$B$?$[$&$,$$$$$H;W$$$^$9!#e(B

e$BNc30$K$J$i$J$$>l9g$K$D$$$F$Oe(B 1.8 e$B$N5sF0$OJQ$($J$/$F$$$$$H;We(B
e$B$$$^$9$,!#e(B

e$BA0ED$G$9!#e(B

2009e$BG/e(B10e$B7ne(B12e$BF|e(B23:08 Tanaka A. [email protected]:

Net::FTPe$B$N$h$&$KJQ$K$,$s$P$C$F$b$I$&$;M-8z$J%"%I%l%9$K$J$i$J$$$3$H$,B?$$$G$7$g$&$7!"e(B
e$BF1$8$h$&$K$7$F$7$^$C$F$b$h$$$G$7$g$&$+!#e(B

e$B$^$!!"$b$O$dC/$b8+$F$J$$5$$,$7$^$9$7$M$’!#e(B

e$B$G$O!"e(B1.9e$B$NJ}$O$=$N$h$&$K$9$k$H$7$F!"e(B

e$B$"$H!"e(B1.8e$B$OJQ$($J$$J}$,$$$$$G$9$+$M!#e(B

boron e$B$G:F8=$7$J$/$J$C$F!"3NG’$G$-$J$/$J$C$A$c$C$?$s$G$9$,!“e(B
(resolv.conf e$B$Ke(B search e$B$,$D$$$?e(B?)
e$B$b$7Nc30$K$J$C$Fe(B login e$B$G$-$J$$$J$i!”$=$NBP=h$Oe(B 1.8 e$B$G$b$d$Ce(B
e$B$?$[$&$,$$$$$H;W$$$^$9!#e(B

e$BNc30$K$J$i$J$$>l9g$K$D$$$F$Oe(B 1.8 e$B$N5sF0$OJQ$($J$/$F$$$$$H;We(B
e$B$$$^$9$,!#e(B

1.8e$B$NJ}$O!“Nc30$,H/@8$9$k%1!<%9$G$O!”%I%a%$%sL>ItJ,$r6u$K$9$k$h$&$K$7$h$&$H;W$$$^$9!#e(B

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs