Skip to content

Windows

备份及恢复本机的IP信息

  • 备份本机的IP信息: netsh -c interface dump > network_config.txt
  • 恢复本机的IP信息: netsh -f network_config.txt 或者(netsh -c Interface -f network_config.txt

ref:

  • https://superuser.com/questions/573739/netsh-import-doesnt-work

常用软件:

常见问题

DNS

智能多宿主名称解析

Windows8+ 中,默认启动了智能多宿主名称解析,会将DNS请求向本机所有的网络接口发送,在某些敏感场景下,可能会造成DNS泄露。

dns-multi-homed-name-resolution

可以通过以下方式禁用: 组策略编辑器中,启用 计算机配置->管理模板->网络->DNS客户端->禁用智能多宿主名称解析

ref:

  • https://www.ghacks.net/2017/08/14/turn-off-smart-multi-homed-name-resolution-in-windows/
  • https://github.com/Dreamacro/clash/issues/2136

NTP

NTP客户端

通过cmd命令,为主机设置一个NTP服务:w32tm /config /syncfromflags:manual /manualpeerlist:"ntp_server" /update

需要使用管理员身份的cmd执行,将 ntp_server 替换为NTP服务的IP或者域名。