最近ftp登陆NCBI出现No route to host的问题

最近一段时间在linux下,我用ftp命令登陆NCBI的ftp地址ftp.ncbi.nih.gov,有时会出现ftp: connect: No route to host的提示,再退出重新登陆,经过多次测试之后,发现有时正常,有时不行,即提示ftp: connect: No route to host。

这个问题以前是没有碰到过。一开始有点怀疑是因为公司对网络的限制所造成的。

这个问题持续了一段时间,不知原因所在。

直到前两天的,我又花了点时间研究这个问题。终于有点眉目。

原来在ftp ftp.ncbi.nih.gov时,会把ftp.ncbi.nih.gov解析为IP地址,当ftp.ncbi.nih.gov解析为130.14.29.30时,就会提示ftp: connect: No route to host。当ftp.ncbi.nih.gov解析为165.112.7.10时,一切正常。

所以,现在把命令换成ftp 165.112.7.10,搞定。

不过,为什么IP是130.14.29.30时,就会有问题呢??这个问题有待解答~

7 回复
  1. yc says:

    We have servers in the background that get updated on a rotating basis. In short, you should never rely on the ip address to download FTP files. You can just use the FTP URLs as found on the FTP websites.

    Regards,

    Steve Pechous, Ph.D.
    NCBI User Services
    pechous@ncbi.nlm.nih.gov

    zhenglc 回复:

    @yc,

    Got it!
    Thank you for reminding me.Thanks for your attention.

    Regards,

    Liucheng

  2. Tore says:

    We have the same problem when trying to connect from Japan. Accessing http://ftp.ncbi.nih.gov connects us to either 130.14.29.30, which fails, or to 165.112.7.10, which succeeds. Perhaps a bad DNS cache on the way from Asia to US? I also started to use fixed IP numbers, even though this solution isn’t optimal.

    柳城博客 回复:

    But this not my problem anymore. It happened a few months ago. Maybe NCBI servers in the background that get updated on a rotating basis. You can see the first message from Steve Pechous.

评论已关闭。