The International Corporation for Assigned Names and Numbers (ICANN) requires the collection of data whenever a domain is registered. This Whois info includes up-to-date personal contact information for every registrar, such as names, email addresses, physical addresses, phone numbers and IP addresses. All of this information is collected into a single database.
Domain lookup involves querying a domain name system (DNS) server to retrieve information about a domain name, including the IP address associated with the domain name, the name servers that manage the domain, and other information such as the domain registrar and the domain owner's contact details. This information is stored in a public database called the WHOIS database.