FurqanSoftware / node-whois

A simple WHOIS client for NodeJS
https://npmjs.org/package/whois
Other
255 stars 78 forks source link

Registry Expiry Date is now Registrar Registration Expiration Date #63

Closed kcwinner closed 5 years ago

kcwinner commented 6 years ago

The changes in 2.5.10 to the regex made the whois request return different values.

registryExpiryDate appears to be the only missing, replaced by registrarRegistrationExpirationDate

Old Results

DomainCheckResult {
        domainName: 'GOOGLE.COM',
        registryDomainID: '2138514_DOMAIN_COM-VRSN',
        registrarWHOISServer: 'whois.markmonitor.com',
        registrarURL: 'http://www.markmonitor.com',
        updatedDate: 2018-02-21T18:36:40.000Z,
        creationDate: 1997-09-15T04:00:00.000Z,
        registryExpiryDate: 2020-09-14T04:00:00.000Z,
        registrar: 'MarkMonitor Inc.',
        registrarIANAID: '292',
        registrarAbuseContactEmail: 'abusecomplaints@markmonitor.com',
        registrarAbuseContactPhone: '+1.2083895740',
        domainStatus: 'serverUpdateProhibited https://icann.org/epp#serverUpdateProhibited',
        nameServer: 'NS4.GOOGLE.COM',
        dnssec: 'unsigned',
        urloftheICANNWhoisInaccuracyComplaintForm: 'https://www.icann.org/wicf/',
        '>>>Lastupdateofwhoisdatabase': '2018-05-30T15:20:12Z <<<',
        notice: 'The expiration date displayed in this record is the date the',
        termsOFUSE: 'You are not authorized to access or query our Whois',
        bythefollowingtermsofuse: 'You agree that you may use this Data only',
        to: '(1) allow, enable, or otherwise support the transmission of mass',
        endText: '\nFor more information on Whois status codes, please visit https://icann.org/epp\n\nregistrar\'s sponsorship of the domain name registration in the registry is\ncurrently set to expire. This date does not necessarily reflect the expiration\ndate of the domain name registrant\'s agreement with the sponsoring\nregistrar.  Users may consult the sponsoring registrar\'s Whois database to\nview the registrar\'s reported date of expiration for this registration.\n\ndatabase through the use of electronic processes that are high-volume and\nautomated except as reasonably necessary to register domain names or\nmodify existing registrations; the Data in VeriSign Global Registry\nServices\' ("VeriSign") Whois database is provided by VeriSign for\ninformation purposes only, and to assist persons in obtaining information\nabout or related to a domain name registration record. VeriSign does not\nguarantee its accuracy. By submitting a Whois query, you agree to abide\nfor lawful purposes and that under no circumstances will you use this Data\nunsolicited, commercial advertising or solicitations via e-mail, telephone,\nor facsimile; or (2) enable high volume, automated, electronic processes\nthat apply to VeriSign (or its computer systems). The compilation,\nrepackaging, dissemination or other use of this Data is expressly\nprohibited without the prior written consent of VeriSign. You agree not to\nuse electronic processes that are automated and high-volume to access or\nquery the Whois database except as reasonably necessary to register\ndomain names or modify existing registrations. VeriSign reserves the right\nto restrict your access to the Whois database in its sole discretion to ensure\noperational stability.  VeriSign may restrict or terminate your access to the\nWhois database for failure to abide by these terms of use. VeriSign\nreserves the right to modify these terms at any time.\n\nThe Registry database contains ONLY .COM, .NET, .EDU domains and\nRegistrars.\n' }

New Results

DomainCheckResult {
        domainName: 'google.com',
        registryDomainID: '2138514_DOMAIN_COM-VRSN',
        registrarWHOISServer: 'whois.markmonitor.com',
        registrarURL: 'http://www.markmonitor.com',
        updatedDate: 2018-02-21T18:45:07.000Z,
        creationDate: 1997-09-15T07:00:00.000Z,
        registrarRegistrationExpirationDate: 2020-09-14T04:00:00.000Z,
        registrar: 'MarkMonitor, Inc.',
        registrarIANAID: '292',
        registrarAbuseContactEmail: 'abusecomplaints@markmonitor.com',
        registrarAbuseContactPhone: '+1.2083895740',
        domainStatus: 'serverDeleteProhibited (https://www.icann.org/epp#serverDeleteProhibited)',
        registrantOrganization: 'Google LLC',
        'registrantState/Province': 'CA',
        registrantCountry: 'US',
        adminOrganization: 'Google LLC',
        'adminState/Province': 'CA',
        adminCountry: 'US',
        techOrganization: 'Google LLC',
        'techState/Province': 'CA',
        techCountry: 'US',
        nameServer: 'ns4.google.com',
        dnssec: 'unsigned',
        urloftheICANNWHOISDataProblemReportingSystem: 'http://wdprs.internic.net/',
        '>>>LastupdateofWHOISdatabase': '2018-05-30T08:16:18-0700 <<<',
        endText: 'If certain contact information is not shown for a Registrant, Administrative,\nor Technical contact, and you wish to send a message to these contacts, please\nsend your message to whoisrelay@markmonitor.com and specify the domain name in\nthe subject line. We will forward that message to the underlying contact.\nIf you have a legitimate interest in viewing the non-public WHOIS details, send\nyour request and the reasons for your request to abusecomplaints@markmonitor.com\nand specify the domain name in the subject line. We will review that request and\nmay ask for supporting documentation and explanation.\nThe Data in MarkMonitor.com\'s WHOIS database is provided by MarkMonitor.com for\ninformation purposes, and to assist persons in obtaining information about or\nrelated to a domain name registration record.  MarkMonitor.com does not guarantee\nits accuracy.  By submitting a WHOIS query, you agree that you will use this Data\nonly for lawful purposes and that, under no circumstances will you use this Data to:\n(1) allow, enable, or otherwise support the transmission of mass unsolicited,\ncommercial advertising or solicitations via e-mail (spam); or\n(2) enable high volume, automated, electronic processes that apply to\nMarkMonitor.com (or its systems).\nMarkMonitor.com reserves the right to modify these terms at any time.\nBy submitting this query, you agree to abide by this policy.\nMarkMonitor is the Global Leader in Online Brand Protection.\nMarkMonitor Domain Management(TM)\nMarkMonitor Brand Protection(TM)\nMarkMonitor AntiPiracy(TM)\nMarkMonitor AntiFraud(TM)\nProfessional and Managed Services\nVisit MarkMonitor at http://www.markmonitor.com\nContact us at +1.8007459229\nIn Europe, at +44.02032062220\nFor more information on Whois status codes, please visit\nhttps://www.icann.org/resources/pages/epp-status-codes-2014-06-16-en\n--\n' }
hjr265 commented 5 years ago

@kcwinner Is this related to node-whois? This package doesn't parse the results.

verybigelephants commented 9 months ago

i have just found this randomly on google when investigating the difference between "Registry Expiry Date different"/ "Registrar Registration Expiration Date". you should be extremly creful, as these two values have a completely different meaning