shadowsocks-rust icon indicating copy to clipboard operation
shadowsocks-rust copied to clipboard

Can local-dns be bound on the local-tun interface address?

Open mklnz opened this issue 1 year ago • 1 comments
trafficstars

Can local-dns be bound on the local-tun interface address?

I've tried:

    {
      "protocol": "tun",
      "tun_interface_address": "10.255.0.1/24",
    },
    {
      "protocol": "dns",
      "local_address": "10.255.0.1",
      "local_port": 53,
      "local_dns_address": "114.114.114.114",
      "local_dns_port": 53,
      "remote_dns_address": "1.1.1.1",
      "remote_dns_port": 53,
      "client_cache_size": 1024,
      "mode": "udp_only",
    }

But it does not seem to respond to DNS requests. Is there any other way to transparently handle DNS requests according to whether it is "local" or "remote"?

mklnz avatar Sep 27 '24 20:09 mklnz