- 修改本机DNS为127.0.0.1
$ vi /etc/resolve.conf
nameserver 127.0.0.1
- 重启网络
$ sudo /etc/init.d/networking restart
- 运行脚本
$ sudo lua dnsforwarder.lua
-
修改本机DNS为127.0.0.1
-
运行toexe.bat,生成dnsforwarder.exe
-
运行dnsforwarder.exe
- [luasocket] (http://w3.impa.br/~diego/software/luasocket/)
sudo luarocks install luasocket
DNSForwarder is distributed under the MIT license.