hosts 文件與 ipv6

  • ipv6 的項目地址:ipv6-hosts
    • 正如文檔中所說,用於在大陸地區加快 Google、YouTube、Facebook、Wikipedia 等的訪問;(twitter 不支持)
    • 使用說明(windows):
      • 解壓到的 hosts 文件對於 windows 系統將其複製到%SystemRoot\System32\Drivers\etc%(%SystemRoot%通常是 C:\Windows
      • cmd 命令行下執行:ipconfig /flushdns(刷新 dns 服務器解析緩存)
    • 使用說明(linux):
      • 將 hosts 文件移動到:/etc/
      • shell 下執行:sudo /etc/init.d/networking restart(重啓網絡服務)

此外該項目中,還有一個 update_hosts.py 文件,其提交說明爲:update blackhole(也即按期地可使用 python 執行該命令以更新hosts文件),與之相配套的還有 merge_snippets.sh文件 ,可見需在 Linux shell 下才可以使用該更新。python

相關文章
相關標籤/搜索