DNS Proxy

GOST added support for DNS proxy in version 2.10.

Usage

gost -L="dns://:1053?mode=udp&dns=8.8.8.8,1.1.1.1:53/tcp,1.1.1.1:853/tls,https://1.0.0.1/dns-query"

Parameters

mode - proxy mode, optional values are: udptcptlshttps. Default value is udp.

dns - same as the dns parameter in DNS Resolver.

ttl - 2.10.1+, cache timeout, negative value will disable the cache. Default value is the TTL in reply.

timeout - 2.10.1+,request timeout, default value is 5s.

ip - 2.10.1+,client host IP. Will enable the ECS(EDNS Client Subnet) extension if set.