Development SOCKS5 server to handle fake DNS resolution. Thin layer over https://github.com/armon/go-socks5
socks5map, by default listens to
:1080, can be controller with
- Configure browser to use SOCKS5 proxy (ie.
- Now any hostname will be "proxied" to localhost, where you should have a web server.
- You can also resolve particular domains to particular IPs instead of a wildcard using the
socks5map [-h] [-l addr] [-r rules]
-lListen address (default ":8080")
-rComma separated list of "domain:IP" for DNS resolving;
*or empty matches any name. Domains not matched by any rule resolve through regular system DNS. (default
:127.0.0.1, meaning anything to localhost)
Listen to 127.0.0.2:9000, resolve hostname home to IP
127.0.0.1 and extension.domain.com to
192.168.0.100, other domains will be resolved by system's DNS.
socks5map -l 127.0.0.2:9000 -r 'home:127.0.0.1,extension.domain.com:192.168.0.100'
go get github.com/dberstein/socks5map