Use resolved in local DNS server if available

This commit is contained in:
世界
2026-01-17 05:44:28 +08:00
parent 0bd98a300f
commit 1c846df903
5 changed files with 215 additions and 8 deletions
+14
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)
}