server

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSHandler

type DNSHandler struct {
	Cache base.Cache
}

func (*DNSHandler) ServeDNS

func (h *DNSHandler) ServeDNS(w dns.ResponseWriter, r *dns.Msg)

ServeDNS will handle incoming dns requests and forward them onwards.

type DNSRequest

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

func (*DNSRequest) Forward

func (d *DNSRequest) Forward(domain string) (dnsRCode int)

Forwards DNS requests to the appropriate upstream server.

Jump to

Keyboard shortcuts

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