看板 Linux 關於我們 聯絡資訊
作業系統:CetnOS 6.9 64bit 請問一下各位 最近碰到一個問題 假設第三方api server abc.com.tw 205.123.123.111 當server使用 curl 發出request到 abc.com.tw '有時候' 會發生response時間過久(約5s以上) 後來發現是ipv6沒有關閉. 關閉後, 速度有優化很多(5s->650ms), 但覺得還是沒有預期的快, 因為如果將curl domain換成ip 回應時間提升至(250ms), DNS 解析時間應該不至於到 400ms ... (目前DNS 設定為 168.95.1.1) 目前ipv6已經確定關閉 lsmod | grep ipv6 不知道還有其他會影響到系統發送 curl 速度的原因嗎? 網路架構 router ----> IP分享 ----> WebServer(VM1) PS : 如果在servre /etc/hosts 加入 abc.com.tw 205.123.123.111 回應時間也是約250ms, 所以明顯的是DNS問題 另外關閉ipv6 有一個步驟無法執行, 不知是否有影響 ... error: "net.ipv6.conf.all.disable_ipv6" is an unknown key error: "net.ipv6.conf.default.disable_ipv6" is an unknown key error: "net.ipv6.conf.lo.disable_ipv6" is an unknown key -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.248.220.9 ※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1503934231.A.DE7.html ※ 編輯: tas72732002 (111.248.220.9), 08/29/2017 00:00:40 ※ 編輯: tas72732002 (111.248.220.9), 08/29/2017 00:01:31 ※ 編輯: tas72732002 (111.248.220.9), 08/29/2017 00:02:02 ※ 編輯: tas72732002 (111.248.220.9), 08/29/2017 00:02:48 ※ 編輯: tas72732002 (111.248.220.9), 08/29/2017 00:04:00 ※ 編輯: tas72732002 (111.248.220.9), 08/29/2017 00:04:22 ※ 編輯: tas72732002 (111.248.220.9), 08/29/2017 00:12:34 ※ 編輯: tas72732002 (111.248.220.9), 08/29/2017 08:00:04
kenduest: 請你先確定一下負責 abc.com.tw 該網域的 nameserver 08/29 09:21
kenduest: 設定是不是正確,還有這些 nameserver 本身是否都可以 08/29 09:22
kenduest: 正常對外提供解析運作 08/29 09:22
kenduest: 然後在內網自行用 nslookup 解析測試查詢 08/29 09:23
kenduest: 使用 hinet dns 或是 google dns 分別解析側試看看 08/29 09:23