WHOIS is a legacy protocol used to retrieve information about domain name registrations. It provides details like the domain owner's name, contact information, registration and expiration dates, and name servers.
RDAP (Registration Data Access Protocol) is the modern replacement for WHOIS. It delivers the same type of domain registration data in a more secure and structured format (JSON), with support for access control, internationalization, and redirection.