- change your dns server to 127.0.0.1:
$ vi /etc/resolve.conf
nameserver 127.0.0.1
- restart the network:
$ sudo /etc/init.d/networking restart
- run the script:
$ sudo lua dnsforwarder.lua
sudo luarocks install luasocket
- only works on Linux, MacOS and Windows are unsupported
DNSForwarder is distributed under the MIT license.