Documentation ¶
Index ¶
- func ClearDirectory(inputdir string)
- func DomainList(domain string) []string
- func GetFileAsArray(inputfile string) ([]string, error)
- func GetFirstAResponse(response *dns.Msg) string
- func IsEmptyResponse(response *dns.Msg) bool
- func ReverseDomainTree(domain string) string
- func ReverseLookupDomain(ip *net.IP) string
- func ReverseLookupDomainString(ipString string) string
- func ReverseString(input string) string
- func RootDomain(domain string) string
- func StartsWithAny(value string, any []string) bool
- func StringIn(value string, in []string) bool
- func SubDomain(domain string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearDirectory ¶ added in v0.1.7
func ClearDirectory(inputdir string)
clears the contents of a directory but leaves it
func DomainList ¶ added in v0.1.3
based on a domain name ("sub.google.com") returns a slice of domains that should be matched EXACTLY against ["sub.google.com", "google.com", "com"]
func GetFileAsArray ¶
func GetFirstAResponse ¶ added in v0.1.9
func IsEmptyResponse ¶
returns true if the response is "empty" nil response empty response (no answers or other sections) answers with no content
func ReverseDomainTree ¶
take a domain like "sub.main.top.tld" and transform to "tld.top.main.sub"
func ReverseLookupDomain ¶
returns the reverse lookup arpa domain for the given IP
func ReverseString ¶
adapted from https://groups.google.com/d/msg/golang-nuts/oPuBaYJ17t4/PCmhdAyrNVkJ
func RootDomain ¶
finds the "root" domain, that is a the domain with just the name and the TLD
func StartsWithAny ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.