【Windows批处理文件.bat一键修改DNS】

    • 创建文件 dns.bat
@echo off

netsh interface ip set dns "以太网" static 223.005.005.005
netsh interface ip add dns "以太网" 8.8.8.8
ipconfig /flushdns
  • 右键-以管理员身份运行即可

Leave a Reply

Your email address will not be published. Required fields are marked *