Support for .au domains

master
Sven Slootweg 11 years ago
parent 71b2e3b142
commit cf9564673b

@ -196,6 +196,7 @@ def normalize_data(data, normalized):
if isinstance(data[key], basestring) and data[key].isupper():
data[key] = " ".join(word.capitalize() for word in data[key].split(" "))
else:
# This might mess up the order? Also seems like there may be another bug here...
data[key] = [" ".join(word.capitalize() for word in item.split(" ")) for item in data[key] if item.isupper()] + [item for item in data[key] if not item.isupper()]
for contact_type, contact in data['contacts'].iteritems():
@ -209,10 +210,7 @@ def normalize_data(data, normalized):
for key in ("name", "street", "city", "state"):
if key in contact and contact[key] is not None and (normalized == True or key in normalized):
if isinstance(contact[key], basestring) and contact[key].isupper():
contact[key] = " ".join(word.capitalize() for word in contact[key].split(" "))
else:
contact[key] = [" ".join(word.capitalize() for word in item.split(" ")) for item in contact[key] if item.isupper()] + [item for item in contact[key] if not item.isupper()]
contact[key] = " ".join(word.capitalize() for word in contact[key].split(" "))
return data
@ -319,6 +317,9 @@ def parse_registrants(data):
"Holder of domain name:\n(?P<name>[\S\s]+)\n(?P<street>.+)\n(?P<postalcode>[A-Z0-9-]+)\s+(?P<city>.+)\n(?P<country>.+)\nContractual Language", # nic.ch
"\n\n(?:Owner)?\s+: (?P<name>.*)\n(?:\s+: (?P<organization>.*)\n)?\s+: (?P<street>.*)\n\s+: (?P<city>.*)\n\s+: (?P<state>.*)\n\s+: (?P<country>.*)\n", # nic.io
"Contact Information:\n\[Name\]\s*(?P<name>.*)\n\[Email\]\s*(?P<email>.*)\n\[Web Page\]\s*(?P<url>.*)\n\[Postal code\]\s*(?P<postalcode>.*)\n\[Postal Address\]\s*(?P<street1>.*)\n(?:\s+(?P<street2>.*)\n)?(?:\s+(?P<street3>.*)\n)?\[Phone\]\s*(?P<phone>.*)\n\[Fax\]\s*(?P<fax>.*)\n", # jprs.jp
"Registrant:[ ]*(?P<name>.+)\n[\s\S]*Eligibility Name:[ ]*(?P<organization>.+)\n[\s\S]*Registrant Contact ID:[ ]*(?P<handle>.+)\n", # .au business
"Eligibility Type:[ ]*Citizen\/Resident\n[\s\S]*Registrant Contact ID:[ ]*(?P<handle>.+)\n[\s\S]*Registrant Contact Name:[ ]*(?P<name>.+)\n", # .au individual
"Registrant:[ ]*(?P<organization>.+)\n[\s\S]*Eligibility Type:[ ]*(Higher Education Institution|Company|Incorporated Association|Other)\n[\s\S]*Registrant Contact ID:[ ]*(?P<handle>.+)\n[\s\S]*Registrant Contact Name:[ ]*(?P<name>.+)\n", # .au educational, company, 'incorporated association' (non-profit?), other (spotted for linux.conf.au, unsure if also for others)
"person:\s+(?P<name>.+)", # nic.ru (person)
"org:\s+(?P<organization>.+)", # nic.ru (organization)
]
@ -330,7 +331,8 @@ def parse_registrants(data):
"Tech Contact: (?P<handle>.+)\nTech Organization: (?P<organization>.+)\nTech Name: (?P<name>.+)\nTech Street: (?P<street>.+)\nTech City: (?P<city>.+)\nTech Postal Code: (?P<postalcode>.+)\nTech State: (?P<state>.+)\nTech Country: (?P<country>.+)\nTech Phone: (?P<phone>.*)\nTech Phone Ext: (?P<phone_ext>.*)\nTech Fax: (?P<fax>.*)\nTech Fax Ext: (?P<fax_ext>.*)\nTech Email: (?P<email>.*)\n", # Key-Systems GmbH
"(?:Tech ID:[ ]*(?P<handle>.*)\n)?Tech[ ]*Name:[ ]*(?P<name>.*)\nTech[ ]*Organization:[ ]*(?P<organization>.*)\nTech[ ]*Street:[ ]*(?P<street1>.+)\n(?:Tech[ ]*Street:[ ]*(?P<street2>.+)\n)?Tech[ ]*City:[ ]*(?P<city>.+)\nTech[ ]*State\/Province:[ ]*(?P<state>.+)\nTech[ ]*Postal[ ]*Code:[ ]*(?P<postalcode>.+)\nTech[ ]*Country:[ ]*(?P<country>.+)\n(?:Tech[ ]*Phone:[ ]*(?P<phone>.*)\n)?(?:Tech[ ]*Phone[ ]*Ext:[ ]*(?P<phone_ext>.*)\n)?(?:Tech[ ]*Fax:[ ]*(?P<fax>.*)\n)?(?:Tech[ ]*Fax[ ]*Ext:\s*?(?P<fax_ext>.*)\n)?(?:Tech[ ]*Email:[ ]*(?P<email>.+)\n)?", # WildWestDomains, GoDaddy, Namecheap/eNom, Ascio, Musedoma (.museum)
"Technical Contact\n (?P<name>.+)\n Email:(?P<email>.+)\n (?P<street1>.+)\n(?: (?P<street2>.+)\n)? (?P<postalcode>.+) (?P<city>.+)\n (?P<country>.+)\n Tel: (?P<phone>.+)\n\n", # internet.bs
"Technical contact:\n(?P<name>[\S\s]+)\n(?P<street>.+)\n(?P<postalcode>[A-Z0-9-]+)\s+(?P<city>.+)\n(?P<country>.+)\n\n" # nic.ch
"Technical contact:\n(?P<name>[\S\s]+)\n(?P<street>.+)\n(?P<postalcode>[A-Z0-9-]+)\s+(?P<city>.+)\n(?P<country>.+)\n\n", # nic.ch
"Tech Contact ID:[ ]*(?P<handle>.+)\nTech Contact Name:[ ]*(?P<name>.+)"
]
admin_contact_regexes = [

@ -0,0 +1,25 @@
Domain Name: actu.org.au
Last Modified: 09-Sep-2013 02:21:17 UTC
Registrar ID: NetRegistry
Registrar Name: NetRegistry
Status: ok
Registrant: Australian Council of Trade Unions
Eligibility Type: Incorporated Association
Eligibility ID: ABN 67175982800
Registrant Contact ID: WORO1080
Registrant Contact Name: Peter Watkins
Registrant Contact Email: Visit whois.ausregistry.com.au for Web based WhoIs
Tech Contact ID: WAPE1350
Tech Contact Name: Peter Watkins
Tech Contact Email: Visit whois.ausregistry.com.au for Web based WhoIs
Name Server: ns15.dnsmadeeasy.com
Name Server: ns10.dnsmadeeasy.com
Name Server: ns11.dnsmadeeasy.com
Name Server: ns12.dnsmadeeasy.com
Name Server: ns13.dnsmadeeasy.com
Name Server: ns14.dnsmadeeasy.com

@ -0,0 +1,22 @@
Domain Name: australia.gov.au
Last Modified: 04-Jun-2013 02:20:37 UTC
Registrar ID: Finance
Registrar Name: Department of Finance
Status: ok
Registrant: Department of Finance and Deregulation
Eligibility Type: Other
Registrant Contact ID: GOVAU-IVLY1033
Registrant Contact Name: Web Manager
Registrant Contact Email: Visit whois.ausregistry.com.au for Web based WhoIs
Tech Contact ID: GOVAU-SUTE1002
Tech Contact Name: Technical Support
Tech Contact Email: Visit whois.ausregistry.com.au for Web based WhoIs
Name Server: dns1.sge.net
Name Server: dns2.sge.net
Name Server: dns3.sge.net
Name Server: dns4.sge.net

@ -0,0 +1,25 @@
Domain Name: linux.conf.au
Last Modified: 29-Apr-2011 09:22:00 UTC
Registrar ID: auDA
Registrar Name: auDA
Status: serverUpdateProhibited (Regulator Domain)
Status: serverTransferProhibited (Regulator Domain)
Status: serverDeleteProhibited (Regulator Domain)
Status: serverRenewProhibited (Regulator Domain)
Registrant: .au Domain Administration Ltd
Registrant ID: OTHER 079 009 340
Eligibility Type: Other
Registrant Contact ID: C28042011
Registrant Contact Name: Stephen Walsh
Registrant Contact Email: Visit whois.ausregistry.com.au for Web based WhoIs
Tech Contact ID: C28042011
Tech Contact Name: Stephen Walsh
Tech Contact Email: Visit whois.ausregistry.com.au for Web based WhoIs
Name Server: russell.linux.org.au
Name Server IP: 202.158.218.245
Name Server: daedalus.andrew.net.au

@ -0,0 +1,2 @@
No Data Found

@ -0,0 +1,20 @@
Domain Name: oli.id.au
Last Modified: 03-Nov-2013 02:04:00 UTC
Registrar ID: PlanetDomain
Registrar Name: PlanetDomain
Status: ok
Registrant: Oliver Ransom
Eligibility Type: Citizen/Resident
Registrant Contact ID: ID00182825-PR
Registrant Contact Name: Oliver Ransom
Registrant Contact Email: Visit whois.ausregistry.com.au for Web based WhoIs
Tech Contact ID: ID00182825-PR
Tech Contact Name: Oliver Ransom
Tech Contact Email: Visit whois.ausregistry.com.au for Web based WhoIs
Name Server: ns1.r4ns.com
Name Server: ns2.r4ns.com

@ -0,0 +1,23 @@
Domain Name: sydney.edu.au
Last Modified: 29-Aug-2012 01:33:23 UTC
Registrar ID: EducationAU
Registrar Name: Education Service Australia Ltd
Status: ok
Registrant: The University of Sydney
Registrant ID: ABN 15211513464
Eligibility Type: Higher Education Institution
Registrant Contact ID: EDU2782-R
Registrant Contact Name: Network Services
Registrant Contact Email: Visit whois.ausregistry.com.au for Web based WhoIs
Tech Contact ID: EDU46834-C
Tech Contact Name: Network Services
Tech Contact Email: Visit whois.ausregistry.com.au for Web based WhoIs
Name Server: extro.ucc.usyd.edu.au
Name Server IP: 129.78.64.1
Name Server: metro.ucc.usyd.edu.au
Name Server IP: 129.78.64.2

@ -0,0 +1,26 @@
Domain Name: whirlpool.net.au
Last Modified: 06-Feb-2012 09:28:40 UTC
Registrar ID: NetRegistry
Registrar Name: NetRegistry
Status: ok
Registrant: Simon Wright
Eligibility Type: Registered Business
Eligibility Name: Whirlpool Broadband Multimedia
Eligibility ID: NSW BN BN98319722
Registrant Contact ID: WRSI1010
Registrant Contact Name: Simon Wright
Registrant Contact Email: Visit whois.ausregistry.com.au for Web based WhoIs
Tech Contact ID: WRSI1010
Tech Contact Name: Simon Wright
Tech Contact Email: Visit whois.ausregistry.com.au for Web based WhoIs
Name Server: ns0.bulletproof.net.au
Name Server IP: 202.44.98.24
Name Server: ns1.bulletproof.net.au
Name Server IP: 64.71.152.56
Name Server: ns1.bulletproofnetworks.net
Name Server: ns0.bulletproofnetworks.net
Loading…
Cancel
Save