Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidIP = errors.New("invalid IP")
Functions ¶
func SmuggleError ¶
SmuggleError crafts a custom DNS answer to include our error message. This allows the function to only have one return, thus simplifying our pipeline. (maybe)
Types ¶
type DNSMap ¶
type DNSMap struct { IPToPTR cmap.ConcurrentMap NameToIPs cmap.ConcurrentMap // map[string]*IPName // SeenIPs is a map of IP addresses that have been seen in the DNS query results // in theory this will be merged into an out of scope key/value store when the DNSMap is destroyed SeenIPs cmap.ConcurrentMap // map[string][]string Working *int64 // contains filtered or unexported fields }
DNSMap is used for resolving and keeping track of DNS query results and their relationships
Click to show internal directories.
Click to hide internal directories.