dns_server

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOutboundIP

func GetOutboundIP() (net.IP, error)

func Write

func Write(w io.Writer, data interface{}) error

Types

type CacheRecord

type CacheRecord struct {
	Values     []*types.DNSRecords
	CreateTime time.Time
}

type DNSResolverService

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

func NewDNSResolverService

func NewDNSResolverService(cliCtx client.Context, proxyServer string) *DNSResolverService

func (*DNSResolverService) RunServer

func (srv *DNSResolverService) RunServer(port int)

Jump to

Keyboard shortcuts

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