Commit Graph

13 Commits

Author SHA1 Message Date
世界
4eb91d69fe Fix DNS cache not working when domain strategy is set
The cache lookup was performed before rule matching, using the caller's
strategy (usually AsIS/0) instead of the resolved strategy. This caused
cache misses when ipv4_only was configured globally but the cache lookup
expected both A and AAAA records.

Remove LookupCache and ExchangeCache from Router, as the cache checks
inside client.Lookup and client.Exchange already handle caching correctly
after rule matching with the proper strategy and transport.
2025-12-21 16:59:10 +08:00
世界
a3b3955f1c Fix DNS reject panic 2025-10-14 23:40:19 +08:00
世界
831e92816e Fix failed DNS responses being incorrectly rejected 2025-08-19 11:14:46 +08:00
世界
8dd9c55c1e Fix dns.client_subnet ignored 2025-07-08 13:14:43 +08:00
世界
ca912aa72f Add resolved service and DNS server 2025-07-08 13:14:41 +08:00
世界
a296b1da3f Fix DNS lookup 2025-07-08 13:12:33 +08:00
世界
96f078e252 Explicitly reject detour to empty direct outbounds 2025-07-08 13:12:28 +08:00
世界
076ed3c69a Add wildcard name support for predefined records 2025-07-08 13:12:27 +08:00
世界
db26a9cc5f Fix DNS lookup context pollution 2025-07-08 13:12:25 +08:00
世界
6cae3e54d1 Move predefined DNS server to rule action 2025-07-08 13:12:23 +08:00
世界
2a623c4b2f Add fallback local DNS server for iOS 2025-07-08 13:12:18 +08:00
世界
71322d2b4c Add Tailscale endpoint 2025-07-08 13:12:16 +08:00
世界
f75ade1991 refactor: DNS 2025-07-08 13:12:14 +08:00