Use resolved in local DNS server if available

This commit is contained in:
世界
2025-08-15 23:31:01 +08:00
parent 0bd98a300f
commit 1c846df903
5 changed files with 215 additions and 8 deletions

View File

@@ -0,0 +1,14 @@
package local
import (
"context"
mDNS "github.com/miekg/dns"
)
type ResolvedResolver interface {
Start() error
Close() error
Object() any
Exchange(object any, ctx context.Context, message *mDNS.Msg) (*mDNS.Msg, error)
}