DNS proxy/router for a specified list of hostnames
- The service proxies all DNS queries
- Adds static routes combining similar addresses into subnets
- Traffic for the list of hostnames goes through the specified gateway (e.g. VPN)
git clone https://github.com/sharupoff/gwhosts-proxy.git cd gwhosts-proxy # Prepare a gzipped list of hostnames (edit it before) gzip --keep gwhosts.example # Install dependencies python -m venv env ./env/bin/pip install .
./env/bin/python -m gwhosts.main ./gwhosts.example.gz --ipv4-gateway=192.168.2.1 --ipv4-ifname=tun0
- GNU/Linux