sing-box/dns
世界 1ebff74c21
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
..
transport Fix trailing dot handling in local DNS transport 2025-10-16 21:43:12 +08:00
client.go Fix DNS cache not working when domain strategy is set 2025-12-21 16:59:10 +08:00
client_log.go
client_truncate.go Fix dns truncate 2025-10-05 17:58:21 +08:00
extension_edns0_subnet.go Fix set edns0 client subnet 2025-07-08 13:14:38 +08:00
rcode.go Fix DNS exchange 2025-09-12 18:05:02 +08:00
router.go Fix DNS cache not working when domain strategy is set 2025-12-21 16:59:10 +08:00
transport_adapter.go refactor: Outbound domain resolver 2025-07-08 13:12:14 +08:00
transport_dialer.go Fix DNS packet size 2025-09-08 09:12:30 +08:00
transport_manager.go Fail when default DNS server not found 2025-07-08 13:12:28 +08:00
transport_registry.go