Documentation
¶
Index ¶
Constants ¶
View Source
const TTL = 60
Variables ¶
View Source
var ErrInvalid error = fmt.Errorf("Invalid domain")
View Source
var RecursorTimeout time.Duration = 5 * time.Second
View Source
var ShutdownTimeout time.Duration = 5 * time.Second
Functions ¶
Types ¶
type Handler ¶
type Handler struct { Context context.Context RootDomain []string Client *dns.Client Server string GlobalRecursors []string ConsulRecursors []string }
func (*Handler) ServeConsulNS ¶
func (h *Handler) ServeConsulNS(w dns.ResponseWriter, req *dns.Msg)
func (*Handler) ServeConsulRecursor ¶
func (h *Handler) ServeConsulRecursor(w dns.ResponseWriter, req *dns.Msg)
func (*Handler) ServeGlobalRecursor ¶
func (h *Handler) ServeGlobalRecursor(w dns.ResponseWriter, req *dns.Msg)
Click to show internal directories.
Click to hide internal directories.