dnslistener

package
v0.0.0-...-04f4181 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(w dns.ResponseWriter, req *dns.Msg)

func HandlerTCP

func HandlerTCP(w dns.ResponseWriter, req *dns.Msg)

func HandlerUDP

func HandlerUDP(w dns.ResponseWriter, req *dns.Msg)

func Lookup

func Lookup(req *dns.Msg) (*dns.Msg, error)

func StartDNS

func StartDNS(Domain string)

Types

type DnsMsg

type DnsMsg struct {
	Timestamp       string
	SourceIP        string
	DestinationIP   string
	DnsQuery        string
	DnsAnswer       []string
	DnsAnswerTTL    []string
	NumberOfAnswers string
	DnsResponseCode string
	DnsOpCode       string
}

Jump to

Keyboard shortcuts

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