Add resolved service and DNS server

This commit is contained in:
世界
2025-07-08 13:14:41 +08:00
parent e2440a569e
commit 6ee3117755
32 changed files with 1550 additions and 58 deletions
+6 -5
View File
@@ -33,11 +33,12 @@ type DNSClient interface {
}
type DNSQueryOptions struct {
Transport DNSTransport
Strategy C.DomainStrategy
DisableCache bool
RewriteTTL *uint32
ClientSubnet netip.Prefix
Transport DNSTransport
Strategy C.DomainStrategy
LookupStrategy C.DomainStrategy
DisableCache bool
RewriteTTL *uint32
ClientSubnet netip.Prefix
}
func DNSQueryOptionsFrom(ctx context.Context, options *option.DomainResolveOptions) (*DNSQueryOptions, error) {