-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathparser_au.go
39 lines (33 loc) · 1.36 KB
/
parser_au.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package whoisparser
import "regexp"
var auParser = &Parser{
errorRegex: &ParseErrorRegex{
NoSuchDomain: regexp.MustCompile(`NOT FOUND`),
RateLimit: nil, //failed to call rate-limit for .au
MalformedRequest: regexp.MustCompile(`Pattern starts with improper character`),
},
registrarRegex: &RegistrarRegex{
DomainDNSSEC: regexp.MustCompile(`DNSSEC: (.+)`),
DomainID: regexp.MustCompile(`Registry Domain ID: *(.+)`),
DomainName: regexp.MustCompile(`Domain Name: *(.+)`),
DomainStatus: regexp.MustCompile(`(?i)Status: +(\w+).*`),
Emails: regexp.MustCompile(`Registrar Abuse Contact Email: (.*)`),
NameServers: regexp.MustCompile(`(?i)Name Server: +(.+)`),
ReferralURL: regexp.MustCompile(`Registrar URL: +(.*)`),
RegistrarName: regexp.MustCompile(`Registrar Name: *(.+)`),
UpdatedDate: regexp.MustCompile(`Last Modified: *(.+)`),
WhoisServer: regexp.MustCompile(`Registrar WHOIS Server: (.*)`),
},
registrantRegex: &RegistrantRegex{
Organization: regexp.MustCompile(`Registrant: (.*)`),
ID: regexp.MustCompile(`Registrant Contact ID: (.*)`),
Name: regexp.MustCompile(`Registrant Contact Name: (.*)`),
},
techRegex: &RegistrantRegex{
ID: regexp.MustCompile(`Tech Contact ID: (.*)`),
Name: regexp.MustCompile(`Tech Contact Name: (.*)`),
},
}
func init() {
RegisterParser(".au", auParser)
}