Versions in this module Expand all Collapse all v1 v1.11.1 Mar 21, 2024 Changes in this version + var ListenAddr string + func WithServer(ctx context.Context) string + func WithView(ctx context.Context) string + type Metrics struct + Addr string + Next plugin.Handler + Reg *prometheus.Registry + func New(addr string) *Metrics + func (m *Metrics) AddZone(z string) + func (m *Metrics) MustRegister(c prometheus.Collector) + func (m *Metrics) Name() string + func (m *Metrics) OnFinalShutdown() error + func (m *Metrics) OnRestart() error + func (m *Metrics) OnStartup() error + func (m *Metrics) RemoveZone(z string) + func (m *Metrics) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) + func (m *Metrics) ZoneNames() []string + type Recorder struct + Caller [3]string + func NewRecorder(w dns.ResponseWriter) *Recorder + func (r *Recorder) WriteMsg(res *dns.Msg) error