nslookup,ping 查 ip 改變 - Linux

Candice avatar
By Candice
at 2012-11-02T22:33

Table of Contents

遇到一個奇怪的狀況

一開始我想下戴gcc 4.7.2
用firefox browser可以成功由
ftp://ftp.gnu.org/gnu/gcc/gcc-4.7.2/gcc-4.7.2.tar.bz2下載回來

為了寫成script
我改成用
wget
卻出現
21:55:22-arton@xxx:~/Downloads$ wget --user-agent=Safari
"ftp://ftp.gnu.org/gnu/gcc/gcc-4.7.2/gcc-4.7.2.tar.bz2"
--2012-11-02 21:55:37--
ftp://ftp.gnu.org/gnu/gcc/gcc-4.7.2/gcc-4.7.2.tar.bz2
=> `gcc-4.7.2.tar.bz2.1'
Resolving ftp.gnu.org (ftp.gnu.org)... 32.1.72.48, 2001:4830:134:3::b
Connecting to ftp.gnu.org (ftp.gnu.org)|32.1.72.48|:21... failed: Connection
timed out.
Connecting to ftp.gnu.org (ftp.gnu.org)|2001:4830:134:3::b|:21... failed:
Network is unreachable.
的錯誤

後來我用ping和nslookup去看ftp.gnu.org的位置
發現它的位置有時候是(這是我覺得很奇怪的地方)
32.1.72.48
有時候是
208.118.235.20

> ftp.gnu.org
Server: 127.0.0.1
Address: 127.0.0.1#53

Non-authoritative answer:
Name: ftp.gnu.org
Address: 32.1.72.48
> ftp.gnu.org
Server: 127.0.0.1
Address: 127.0.0.1#53

Non-authoritative answer:
Name: ftp.gnu.org
Address: 208.118.235.20

而如下才可以抓到東西
wget ftp://208.118.235.20/gnu/gcc/gcc-4.7.2/gcc-4.7.2.tar.bz2


--
Tags: Linux

All Comments

Susan avatar
By Susan
at 2012-11-07T10:40
比較大型的站台一個 Domain 對應多 IP 很正常
Barb Cronin avatar
By Barb Cronin
at 2012-11-11T13:18
32那個反查查不到gnu的反解 有可能是wget用到proxy?
Ivy avatar
By Ivy
at 2012-11-12T08:40
還是你自己的dns server有問題?
Dora avatar
By Dora
at 2012-11-15T06:24
感謝 我再查查dns server是否有問題

燒錄方式問題

John avatar
By John
at 2012-11-02T18:37
請問: 如果下載了 ISO 檔案,是開機光碟, 應該使用 raw96p 燒錄 還是使用 raw96r 燒錄呢? 其效果又是如何呢? - ...

台南聚會 - mosut

Ethan avatar
By Ethan
at 2012-11-02T10:22
http://registrano.com/events/mosut20121103 ==議程說明== 分享人:Marcus 主題:「MOPCON會後心得分享」 MOPCON是南部第一個移動式平台大型研討會, 上周舉行後大受好評,Marcus將分享他的所見所聞! 「無固定主題分享交流」: 帶著 ...

script超時自動停止

Rebecca avatar
By Rebecca
at 2012-11-02T08:43
想請教一下,如果希望一支script運行超過預期時間就中止,應該要怎麼做呢? 目前嘗試的方法是: a.sh: .... ssh xxxatxxxx echo xxxxx .... b.sh: sh /home/a.sh andamp; pid=and#34;$!and#34; sleep 15 ki ...

systemd造成/etc下檔案唯讀?

Anthony avatar
By Anthony
at 2012-11-02T02:04
用的是archlinux 最近一次更新 發現pcmanfm不能自動掛載隨身碟 原因是有個套件被移出了 說是要用systemd來取代 (聽說systemd是趨勢) 所以花了時間照著archwiki設定 後來我設了兩個核心 A核心改grub2來用systemd啟動 B核心讓他讀原始的rc.co ...

makefile抓系統變數

Charlotte avatar
By Charlotte
at 2012-11-02T02:01
請問 如果要在makefile裡面用shell的系統變數要怎麼寫? 我寫的是 ================================================ t = ${date} # all: 111 echo and#34;${t}and#34; andgt;andgt ...