Skip to content

Commit

Permalink
Merge pull request #231 from lelutin/sg_status
Browse files Browse the repository at this point in the history
Sg status, nameservers, updated date and DNSSEC
  • Loading branch information
richardpenman authored Jun 19, 2024
2 parents 388f083 + 0aeb7a3 commit 36f1634
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/samples/expected/google.com.sg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"domain_name": "google.com.sg", "status": ["clientDeleteProhibited https://icann.org/epp#clientDeleteProhibited", "clientTransferProhibited https://icann.org/epp#clientTransferProhibited", "clientUpdateProhibited https://icann.org/epp#clientUpdateProhibited"], "registrant_name": "GOOGLE LLC", "registrar": "MarkMonitor Inc.", "creation_date": "2002-07-05 09:42:32", "expiration_date": "2025-07-04 16:00:00", "updated_date": "2024-06-03 09:54:56", "dnssec": "unsigned", "name_servers": ["ns1.google.com", "ns2.google.com"]}
26 changes: 26 additions & 0 deletions test/samples/whois/google.com.sg
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Domain Name: google.com.sg
Updated Date: 2024-06-03T09:54:56Z
Creation Date: 2002-07-05T09:42:32Z
Registry Expiry Date: 2025-07-04T16:00:00Z
Registrar: MarkMonitor Inc.
Domain Status: clientDeleteProhibited https://icann.org/epp#clientDeleteProhibited
Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited
Domain Status: clientUpdateProhibited https://icann.org/epp#clientUpdateProhibited
VerifiedID Status: VerifiedID@SG-Not Required
Registry Lock:
Registrant Name: GOOGLE LLC
Admin Name: MARKMONITOR INC.
Tech Name: GOOGLE LLC
Tech Email: dns-admin@google.com
Name Server: ns1.google.com
Name Server: ns2.google.com
DNSSEC: unsigned
>>> Last update of WHOIS database: 2024-06-18T01:45:41Z <<<

For more information on Whois status codes, please visit https://icann.org/epp

% ----------------------------------------------------------------------
% SGNIC WHOIS Server
% ----------------------------------------------------------------------
%
% This data is provided for information purposes only.
5 changes: 4 additions & 1 deletion whois/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,11 +419,14 @@ class WhoisSG(WhoisEntry):

regex = {
"domain_name": r"Domain name: *(.+)",
"status": r"Domain Status: *(.+)",
"registrant_name": r"Registrant:\n\s+Name:(.+)",
"registrar": r"Registrar: *(.+)",
"creation_date": r"Creation date: *(.+)",
"updated_date": r"Updated Date: *(.+)",
"expiration_date": r"Registry Expiry Date: *(.+)",
"dnssec": r"DNSSEC:\n(.*)",
"dnssec": r"DNSSEC: *(.+)",
"name_servers": r"Name server: *(.+)", # list of name servers
}

def __init__(self, domain, text):
Expand Down

0 comments on commit 36f1634

Please sign in to comment.