dns

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	IPv6 bool
	// contains filtered or unexported fields
}

func CreateHandler added in v0.0.4

func CreateHandler(IPv6 bool) (*Handler, error)

CreateHandler Starts DNS handler to receive request from guest

func (*Handler) HandleDNSRequest added in v0.0.4

func (h *Handler) HandleDNSRequest(req []byte) *dns.Msg

HandleDNSRequest Handles the DNS request from guest and returns response

func (*Handler) UpdateDefaults added in v0.0.4

func (h *Handler) UpdateDefaults(hosts map[string]string)

UpdateDefaults Updates the predefined list of cname and ip

Jump to

Keyboard shortcuts

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