路径:

win:

C:\Windows\System32\drivers\etc\hosts

群晖:

root/etc/hosts


自用hosts: file iconhosts.rar # 2023-7-18


  1. 查询可用的dns地址:Dns检测|Dns查询 - 站长工具 (chinaz.com)

    image.png

  2. 复制可用的DNS地址,和域名组成  IP(空格)域名 的格式。

  3. 写入hosts文件的底部,保存即可。


    image.png