Partition local DNS caches by interface signature

This commit is contained in:
世界
2026-08-30 17:41:45 +08:00
parent 28b25598ed
commit 0e75f5f45c
16 changed files with 523 additions and 312 deletions
+5
View File
@@ -94,6 +94,11 @@ type DNSTransportWithPreferredDomain interface {
PreferredDomain(domain string) bool
}
type DNSTransportWithEnvironment interface {
DNSTransport
Environment() []string
}
type DNSTransportRegistry interface {
option.DNSTransportOptionsRegistry
CreateDNSTransport(ctx context.Context, logger log.ContextLogger, tag string, transportType string, options any) (DNSTransport, error)