The server looks up a single or a group of domain names. First via RDAP and if RDAP isn't available (since WHOIS is officially being deprecated, but not all the NICs migrated to RDAP), then fall back to WHOIS.