chimadan/dns2socks

By chimadan

Updated 12 months ago

redirects DNS requests to a DNS server via a SOCKS5 tunnel. (amd64, arm64,arm32)

Image
Networking
1

284

chimadan/dns2socks repository overview

dns2sock is a service that redirects DNS requests to a DNS server via a SOCKS5 tunnel.
envs list
SOCKS5_ADDR - IP Sock5 Srever [Default: 172.17.0.1]
SOCKS5_PORT - Port Sosk5 Server[Default:9050]
SOCKS5_USERNAME
SOCKS5_PAROL
DNSSERV_ADDR - IP remote DNS [Default: 1.1.1.1)]
LISTENIP_PORT - Listen local IP[:Port] [Defailt: 0.0.0.0[:53]

Mikrotik add envs examle

/container envs
add key=SOCKS5_ADDR name=dns2socks value=172.17.0.1
add key=SOCKS5_PORT name=dns2socks value=9050
add key=SOCKS5_USERNAME name=dns2socks value=UserName
add key=SOCKS5_PAROL name=dns2socks value=Password
add key=DNSSERV_ADDR name=dns2socks value=8.8.8.8
add key=LISTENIP_PORT name=dns2socks value=172.16.2.2:53

The command line call for DNS2SOCKS has the following format:
DNS2SOCKS [/?] [/t] [/d] [/q] [l[a]:FilePath] [/u:User /p:Password]
[/e[f]:IP/Bits]
[Socks5ServIP[:Port]] [DNSServIPorName[:Port]] [ListenIP[:Port]]

/? or any invalid parameter outputs the usage text
/t to use a HTTP proxy instead of a SOCKS server
(here: Socks5ServIP = HttpProxyIP, no support for /u and /p)
/d disables the cache
/q disables the text output to the console
/l:FilePath creates a new log file "FilePath"
/la:FilePath creates a new log file "FilePath" or appends to the file if
it already exists
/u:User user name if your SOCKS server uses user/password
authentication
/p:Password password if your SOCKS server uses user/password
authentication
/e:IP/Bits to enable and specify EDNS client subnet in DNS queries
/ef:IP/Bits same as above but also replaces EDNS client subnet if it
exists

https://github.com/crackevil/DNS2SOCKS

Tag summary

Content type

Image

Digest

sha256:50568eeed

Size

3.1 MB

Last updated

12 months ago

docker pull chimadan/dns2socks:v0.0.2