Documentation
¶
Index ¶
- Constants
- func ASNToNetblocks(asn int) ([]string, error)
- func DNSExchange(client *dns.Client, req *request)
- func GetARecordData(answers []DNSAnswer) string
- func GetJSONPage(u string) string
- func GetWebPage(u string) string
- func NewUniqueElements(orig []string, add ...string) []string
- func PostForm(u string, params url.Values) string
- func PostXMLWeb(u, body string) string
- func ReverseDNS(ip, server string) (string, error)
- func ReverseWhois(domain string) []string
- func UniqueAppend(orig []string, add ...string) []string
- type ASRecord
- type DNSAnswer
Constants ¶
View Source
const ( USER_AGENT = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36" ACCEPT = "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" ACCEPT_LANG = "en-US,en;q=0.8" )
View Source
const SUBRE = "(([a-zA-Z0-9]{1}|[a-zA-Z0-9]{1}[a-zA-Z0-9-]{0,61}[a-zA-Z0-9]{1})[.]{1})+"
Variables ¶
This section is empty.
Functions ¶
func ASNToNetblocks ¶
func DNSExchange ¶
func GetARecordData ¶
Goes through the DNS answers looking for A and AAAA records, and returns the first Data field found for those types
func GetJSONPage ¶
func GetWebPage ¶
func NewUniqueElements ¶
func PostXMLWeb ¶
func ReverseDNS ¶
func ReverseWhois ¶
ReverseWhois - Returns a slice of domain names related to the domain provided
func UniqueAppend ¶
Types ¶
type ASRecord ¶
func IPToASRecord ¶
type DNSAnswer ¶
type DNSAnswer struct { Name string `json:"name"` Type int `json:"type"` TTL int `json:"TTL"` Data string `json:"data"` }
func GoogleResolveDNS ¶
func ResolveDNS ¶
Click to show internal directories.
Click to hide internal directories.