dnstest

package
v1.14.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestServer

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

func SetupResolver

func SetupResolver(t *testing.T, domain string) *TestServer

func SetupResolverOnNetwork

func SetupResolverOnNetwork(t *testing.T, domain string, network string) *TestServer

func (*TestServer) AddDomain

func (ts *TestServer) AddDomain(domain string)

func (*TestServer) AddRecord

func (ts *TestServer) AddRecord(domain string, record string, value string)

func (*TestServer) Cleanup

func (ts *TestServer) Cleanup()

func (*TestServer) GetLocalAddr

func (ts *TestServer) GetLocalAddr() string

func (*TestServer) GetRemoteAddr

func (ts *TestServer) GetRemoteAddr() string

func (*TestServer) PushConfig

func (ts *TestServer) PushConfig()

func (*TestServer) RemoveAllRecords

func (ts *TestServer) RemoveAllRecords()

func (*TestServer) RemoveRecord

func (ts *TestServer) RemoveRecord(domain string, record string, value string)

func (*TestServer) RemoveRecordsForDomain

func (ts *TestServer) RemoveRecordsForDomain(domain string)

func (*TestServer) RemoveRecordsOfTypeForDomain

func (ts *TestServer) RemoveRecordsOfTypeForDomain(domain string, record string)

Jump to

Keyboard shortcuts

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