Автор оригинала: Konstantin Bogomolov.
Вы можете проверить срок действия домена с использованием команды WHOIS.
Допустим, мы хотим получить дату истечения срока действия домена Medium.com. Вот пример команд:
whois medium.com
Вывод выглядит так:
Domain Name: MEDIUM.COM Registry Domain ID: 1329658_DOMAIN_COM-VRSN Registrar WHOIS Server: whois.registrar.amazon.com Registrar URL: http://registrar.amazon.com Updated Date: 2021-04-21T23:16:31Z Creation Date: 1998-05-27T04:00:00Z Registry Expiry Date: 2022-05-26T04:00:00Z Registrar: Amazon Registrar, Inc. Registrar IANA ID: 468 Registrar Abuse Contact Email: abuse@amazonaws.com Registrar Abuse Contact Phone: +1.2067406200 Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited Name Server: ALINA.NS.CLOUDFLARE.COM Name Server: KIP.NS.CLOUDFLARE.COM DNSSEC: unsigned URL of the ICANN Whois Inaccuracy Complaint Form: https://www.icann.org/wicf/ >>> Last update of whois database: 2021-06-10T03:46:55Z <<< For more information on Whois status codes, please visit https://icann.org/epp NOTICE: The expiration date displayed in this record is the date the registrar's sponsorship of the domain name registration in the registry is currently set to expire. This date does not necessarily reflect the expiration date of the domain name registrant's agreement with the sponsoring registrar. Users may consult the sponsoring registrar's Whois database to view the registrar's reported date of expiration for this registration. TERMS OF USE: You are not authorized to access or query our Whois database through the use of electronic processes that are high-volume and automated except as reasonably necessary to register domain names or modify existing registrations; the Data in VeriSign Global Registry Services' ("VeriSign") Whois database is provided by VeriSign for information purposes only, and to assist persons in obtaining information about or related to a domain name registration record. VeriSign does not guarantee its accuracy. By submitting a Whois query, you agree to abide by the following terms of use: You agree that you may use this Data only for lawful purposes and that under no circumstances will you use this Data to: (1) allow, enable, or otherwise support the transmission of mass unsolicited, commercial advertising or solicitations via e-mail, telephone, or facsimile; or (2) enable high volume, automated, electronic processes that apply to VeriSign (or its computer systems). The compilation, repackaging, dissemination or other use of this Data is expressly prohibited without the prior written consent of VeriSign. You agree not to use electronic processes that are automated and high-volume to access or query the Whois database except as reasonably necessary to register domain names or modify existing registrations. VeriSign reserves the right to restrict your access to the Whois database in its sole discretion to ensure operational stability. VeriSign may restrict or terminate your access to the Whois database for failure to abide by these terms of use. VeriSign reserves the right to modify these terms at any time. The Registry database contains ONLY .COM, .NET, .EDU domains and Registrars. Domain Name: medium.com Registry Domain ID: 1329658_DOMAIN_COM-VRSN Registrar WHOIS Server: whois.registrar.amazon.com Registrar URL: https://registrar.amazon.com Updated Date: 2021-04-21T23:16:32.535Z Creation Date: 1998-05-27T04:00:00Z Registrar Registration Expiration Date: 2022-05-26T04:00:00Z Registrar: Amazon Registrar, Inc. Registrar IANA ID: 468 Registrar Abuse Contact Email: abuse@amazonaws.com Registrar Abuse Contact Phone: +1.2067406200 Reseller: Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited Domain Status: renewPeriod https://icann.org/epp#renewPeriod Registry Registrant ID: Registrant Name: On behalf of medium.com owner Registrant Organization: Whois Privacy Service Registrant Street: P.O. Box 81226 Registrant City: Seattle Registrant State/Province: WA Registrant Postal Code: 98108-1226 Registrant Country: US Registrant Phone: +1.2065771368 Registrant Phone Ext: Registrant Fax: Registrant Fax Ext: Registrant Email: owner-4504344@medium.com.whoisprivacyservice.org Registry Admin ID: Admin Name: On behalf of medium.com administrative contact Admin Organization: Whois Privacy Service Admin Street: P.O. Box 81226 Admin City: Seattle Admin State/Province: WA Admin Postal Code: 98108-1226 Admin Country: US Admin Phone: +1.2065771368 Admin Phone Ext: Admin Fax: Admin Fax Ext: Admin Email: admin-4504344@medium.com.whoisprivacyservice.org Registry Tech ID: Tech Name: On behalf of medium.com technical contact Tech Organization: Whois Privacy Service Tech Street: P.O. Box 81226 Tech City: Seattle Tech State/Province: WA Tech Postal Code: 98108-1226 Tech Country: US Tech Phone: +1.2065771368 Tech Phone Ext: Tech Fax: Tech Fax Ext: Tech Email: tech-4504344@medium.com.whoisprivacyservice.org Name Server: alina.ns.cloudflare.com Name Server: kip.ns.cloudflare.com DNSSEC: unsigned URL of the ICANN WHOIS Data Problem Reporting System: http://wdprs.internic.net/ >>> Last update of WHOIS database: 2021-04-21T23:16:32.902Z <<< For more information on Whois status codes, please visit https://www.icann.org/resources/pages/epp By submitting a query to the Amazon Registrar, Inc. WHOIS database, you agree to abide by the following terms. The data in Amazon Registrar, Inc.'s WHOIS database is provided by Amazon Registrar, Inc. for the sole purpose of assisting you in obtaining information about domain name accuracy. You agree to use this data only for lawful purposes and further agree not to use this data for any unlawful purpose or to: (1) enable, allow, or otherwise support the transmission by email, telephone, or fa[csimile of commercial advertising or unsolicited bulk email, or (2) enable high volume, automated, electronic processes to collect or compile this data for any purpose, including mining this data for your own personal or commercial purposes. Amazon Registrar, Inc. reserves the right to restrict or terminate your access to the data if you fail to abide by these terms of use. Amazon Registrar, Inc. reserves the right to modify these terms at any time. Visit Amazon Registrar, Inc. at https://registrar.amazon.com Contact information available here: https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/domain-contact-support.html © 2021, Amazon.com, Inc., or its affiliates
Мы можем читать строку по линии и найти строку с датой истечения срока действия домена. Или мы могли бы использовать инструменты CLI, чтобы его отфильтровали. Вот команда:
whois medium.com | grep "Expiration Date"
Если вы хотите проверить его автоматически и получать уведомление, когда ваш домен собирается истечь, используйте Инструмент мониторинга срока действия домена
Оригинал: «https://www.codementor.io/@konstantinbogomolov/how-to-check-domain-expiration-date-in-linux-using-cli-1ixyla7vil»