dns

package
v2.2.1-rc.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Flush

func Flush(ctx context.Context)

Flush makes an attempt to flush the host's DNS cache

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is a DNS server which implements the github.com/miekg/dns Handler interface

func NewServer

func NewServer(c context.Context, listeners []net.PacketConn, fallback string, resolve func(string) []string) *Server

NewServer returns a new dns.Server

func (*Server) Run

func (s *Server) Run(c context.Context) error

Start starts the DNS server

func (*Server) ServeDNS

func (s *Server) ServeDNS(w dns.ResponseWriter, r *dns.Msg)

ServeDNS is an implementation of github.com/miekg/dns Handler.ServeDNS.

Notes

Bugs

  • I have no idea why a lookup for localhost even makes it to here on my home WiFi when connecting to a k3sctl cluster (but not a kubernaut.io cluster). But it does, so I need this in order to be productive at home. We should really root-cause this, because it's weird.

Jump to

Keyboard shortcuts

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