Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 734 Bytes

README-zh.md

File metadata and controls

47 lines (31 loc) · 734 Bytes

如何使用 dnsforwarder.lua 脚本 ?

Linux/Mac

  1. 修改本机DNS为127.0.0.1
$ vi /etc/resolve.conf
nameserver 127.0.0.1
  1. 重启网络
$ sudo /etc/init.d/networking restart
  1. 运行脚本
$ sudo lua dnsforwarder.lua

Windows

  1. 修改本机DNS为127.0.0.1

  2. 运行toexe.bat,生成dnsforwarder.exe

  3. 运行dnsforwarder.exe

脚本依赖

lua模块

lua模块安装

  sudo luarocks install luasocket

LICENSE

DNSForwarder is distributed under the MIT license.