From 410dc0ac3626866089c8b71006ab353c34a53bdb Mon Sep 17 00:00:00 2001 From: zonyitoo Date: Sun, 26 May 2024 10:35:40 +0800 Subject: [PATCH] chore: fake-dns configuration helper in README --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index f7b7ec23f8dd..60179e4c08a3 100644 --- a/README.md +++ b/README.md @@ -649,6 +649,25 @@ Example configuration: // Linux/Android: tproxy (default) // FreeBSD/OpenBSD: pf (default) "udp_redir": "tproxy" + }, + { + // FakeDNS local server (feature = "local-fake-dns") + // FakeDNS is a DNS server that allocates an IPv4 / IPv6 address in a specific pool for each queries. + // Subsequence requests from the other local interfaces that the target addresses includes those allocated IP addresses, + // will be substituted back to their original domain name addresses. + // This feature is useful mostly for transparent proxy, which will allow the proxied domain names to be resolved remotely. + "protocol": "fake-dns", + // Listen address + "local_address": "127.0.0.1", + "local_port": 10053, + // IPv4 address pool (for A records) + "fake_dns_ipv4_network": "10.255.0.0/16", + // IPv6 address pool (for AAAA records) + "fake_dns_ipv6_network": "fdf2:e786:ab40:9d2f::/64", + // Persistent storage for all allocated DNS records + "fake_dns_database_path": "/var/shadowsocks/fakedns.db", + // OPTIONAL: Record expire duration in seconds, 10s by default + "fake_dns_record_expire_duration": 10 } ],