mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-30 20:13:33 +01:00
19 lines
244 B
Go
19 lines
244 B
Go
|
package dns
|
||
|
|
||
|
import (
|
||
|
"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() string
|
||
|
}
|