Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRouterService ¶
func CreateRouterService() error
CreateRouterService creates and enables the systemd service for the DNS router.
func RestartRouterService ¶
func RestartRouterService() error
RestartRouterService restarts the DNS router service.
func Serve ¶
func Serve(cfgInterface interface{}) error
Serve loads config and starts the DNS router.
func StartRouterService ¶
func StartRouterService() error
StartRouterService starts the DNS router service.
func StopRouterService ¶
func StopRouterService() error
StopRouterService stops the DNS router service.
Types ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
Router is a pure Go DNS forwarder that routes queries by domain.
func (*Router) AddVerifyRoute ¶
AddVerifyRoute registers a domain's public key and MTU for HMAC verification.
func (*Router) ListenAndServe ¶
ListenAndServe starts the DNS router.
func (*Router) SetDefault ¶
SetDefault sets the default backend for unmatched queries.
Click to show internal directories.
Click to hide internal directories.