resolvers

package
v0.6.14 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Overview

Package resolvers contain the various DNS resolvers to use.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSCryptResolver

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

DNSCryptResolver is for making DNSCrypt queries.

func (*DNSCryptResolver) LookUp

func (resolver *DNSCryptResolver) LookUp(msg *dns.Msg) (resp util.Response, err error)

LookUp performs a DNS query.

type HTTPSResolver

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

HTTPSResolver is for DNS-over-HTTPS queries.

func (*HTTPSResolver) LookUp

func (resolver *HTTPSResolver) LookUp(msg *dns.Msg) (resp util.Response, err error)

LookUp performs a DNS query.

type QUICResolver

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

QUICResolver is for DNS-over-QUIC queries.

func (*QUICResolver) LookUp

func (resolver *QUICResolver) LookUp(msg *dns.Msg) (resp util.Response, err error)

LookUp performs a DNS query.

type Resolver

type Resolver interface {
	LookUp(*dns.Msg) (util.Response, error)
}

Resolver is the main resolver interface.

func LoadResolver

func LoadResolver(opts *util.Options) (resolver Resolver, err error)

LoadResolver loads the respective resolver for performing a DNS query.

type StandardResolver

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

StandardResolver is for UDP/TCP resolvers.

func (*StandardResolver) LookUp

func (resolver *StandardResolver) LookUp(msg *dns.Msg) (resp util.Response, err error)

LookUp performs a DNS query.

Jump to

Keyboard shortcuts

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