Documentation
¶
Index ¶
Constants ¶
View Source
const ( DEFAULT_WHOIS_PORT = "43" DEFAULT_TCP_TIMEOUT = time.Second * 10 )
Variables ¶
This section is empty.
Functions ¶
func WhoisQuery ¶
WhoisQuery accepts a domain and will return the full response of the whois query for the given domain. If the domain is invalid or whois fails an error will be returned.
Types ¶
type WhoisRecord ¶
type WhoisRecord struct { // times LastUpdatedAt time.Time CreatedAt time.Time ExpiresAt time.Time // contact points Registrar string ContactEmails []string ContactPhoneNumbers []string // tech details NameServers []url.URL DNSSECEnabled bool }
func ParseWhoisResponse ¶
func ParseWhoisResponse(resp string) (WhoisRecord, error)