dns

package
v0.0.0-...-07f1eb8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package dns implements a DNS forwarder.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Mux *dns.ServeMux
	// contains filtered or unexported fields
}

func NewServer

func NewServer(addr, domain string) *Server

func (*Server) DyndnsHandler

func (s *Server) DyndnsHandler(w http.ResponseWriter, r *http.Request)

func (*Server) PrometheusHandler

func (s *Server) PrometheusHandler() http.Handler

func (*Server) SetLeases

func (s *Server) SetLeases(leases []dhcp4d.Lease)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL