resolver

package
v0.0.0-...-97a175b Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

type Resolver struct {
	BlockList *blocklist.BlockList
	Cache     *cache.Cache
	Local     *local.LocalRecords
	Upstream  *upstream.Upstream
	Queue     chan transport.QueueItem
}

func New

func New(cfg *config.Config, q chan transport.QueueItem) *Resolver

New creates a new Resolver instance.

func (*Resolver) Resolve

func (r *Resolver) Resolve(req *dns.Msg) (*dns.Msg, error)

Resolve processes the DNS query and returns a response.

func (*Resolver) Start

func (r *Resolver) Start()

Jump to

Keyboard shortcuts

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