dnsproxy

package
v2.18.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHeader

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

func PtrAddress

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

func SupportedType added in v2.9.0

func SupportedType(qType uint16) bool

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