Documentation ¶
Index ¶
Constants ¶
View Source
const MAXLINESIZE = 500
we expect every line to be less than 500 bytes (DNS only allows 255)
View Source
const WALKBYTES = 10000
scan backwards 10 kilobytes at a time looking for the edge of our matched string
Variables ¶
View Source
var DefaultLimits = Limits{
MaxScan: 100,
MaxOutputLines: 100000,
}
Functions ¶
func DNSBinarySearch ¶
pass a file path and search string to search for matches expects the file to sorted, with domain names at the start of the file, in reverse order example: "moc.elpmaxe.www,1.1.1.1" returns a list of matches example ["1.1.1.1,www.example.com"]
Types ¶
Click to show internal directories.
Click to hide internal directories.