mirror of
https://github.com/netbirdio/netbird.git
synced 2025-08-16 18:11:58 +02:00
21 lines
262 B
Go
21 lines
262 B
Go
package dns
|
|
|
|
import (
|
|
"net/netip"
|
|
|
|
"github.com/miekg/dns"
|
|
)
|
|
|
|
const (
|
|
DefaultPort = 53
|
|
)
|
|
|
|
type service interface {
|
|
Listen() error
|
|
Stop()
|
|
RegisterMux(domain string, handler dns.Handler)
|
|
DeregisterMux(key string)
|
|
RuntimePort() int
|
|
RuntimeIP() netip.Addr
|
|
}
|