dnsproxy

package
v2.8.5 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ManagerCanDoDNSQueryTypes

func ManagerCanDoDNSQueryTypes(v semver.Version) bool

func NewHeader

func NewHeader(qName string, qType uint16) dns.RR_Header

func PtrAddress

func PtrAddress(addr string) (net.IP, error)

func TimedExternalLookup

func TimedExternalLookup(ctx context.Context, name string, timeout time.Duration) iputil.IPs

TimedExternalLookup will shell out to an operating specific lookup command. The reason for this is to make sure that no caching or a negative result is performed in this process, which would invalidate subsequent attempts.

func ToRPC

func ToRPC(rrs RRs, rCode int) (*manager.DNSResponse, error)

Types

type RRs

type RRs []dns.RR

func FromRPC

func FromRPC(r *manager.DNSResponse) (RRs, int, error)

func Lookup

func Lookup(ctx context.Context, qType uint16, qName string) (RRs, int, error)

func (RRs) String

func (a RRs) String() string

Jump to

Keyboard shortcuts

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