最近在 Facebook 上常看到有同事在抱怨破圖,其實是 168.95.1.1
的問題... 在 zsh 下跑一百次查詢可以偵測到對應的問題,不只是 Facebook 的網站,包括 HiNet 自家網站都查不到:
gslin@GSLIN-HOME1404 [~] [01:12/W5] repeat 100 host www.hinet.net 168.95.1.1 | grep REFUSED Host www.hinet.net not found: 5(REFUSED) Host www.hinet.net not found: 5(REFUSED) Host www.hinet.net not found: 5(REFUSED) Host www.hinet.net not found: 5(REFUSED) Host www.hinet.net not found: 5(REFUSED) Host www.hinet.net not found: 5(REFUSED) Host www.hinet.net not found: 5(REFUSED)
隔壁的 168.95.192.1
與 Google 家的 8.8.8.8
就沒這個問題:
gslin@GSLIN-HOME1404 [~] [01:13/W5] repeat 100 host www.hinet.net 168.95.192.1 | grep REFUSED gslin@GSLIN-HOME1404 [~] [01:13/W5] repeat 100 host www.hinet.net 8.8.8.8 | grep REFUSED gslin@GSLIN-HOME1404 [~] [01:14/W5]
所以 workaround 就呼之欲出了:把 DNS resolver 換成 8.8.8.8
。