mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 19:13:34 +00:00
chore: init embedded DNS server
This commit is contained in:
@@ -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