mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-06 13:18:58 +00:00
chore: init embedded DNS server
This commit is contained in:
1 parent
eee28e2ead
commit
fbbf839258
1 file changed
+15
@@ -0,0 +1,15 @@
|
||||
package dns
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net/netip"
|
||||
)
|
||||
|
||||
// Server provides a DNS server for service discovery and proxying to upstream DNS servers.
|
||||
type Server struct {
|
||||
store RecordsStore
|
||||
}
|
||||
|
||||
type RecordsStore interface {
|
||||
Resolve(ctx context.Context, name string) ([]netip.Addr, error)
|
||||
}
|
||||
Reference in new issue
Block a user