WHOIS is the original protocol and database for looking up who registered a domain, when it was created and when it expires. Since data-protection rules such as the GDPR, most personal contact details are redacted. For gTLDs it has largely been replaced by RDAP.