[LINUX] WHOIS server retirement

So, if you’re using the WHOIS command under linux (E.g whois rachita.net), you will probably get some notice like:
**NOTICE** This WHOIS server is being retired. Please use our RDAP service instead.

In a nutshell, this is why it happens:

The long-standing WHOIS system for looking up domain name registration details is coming to an end. Starting January 28, 2025, ICANN will officially replace WHOIS with the Registration Data Access Protocol (RDAP). But don’t worry—this change isn’t happening overnight, and most users won’t notice any immediate disruptions.

RDAP is a modern alternative to WHOIS that offers several improvements:

  • better security: it provides more controlled access to domain registration data.
  • international support: unlike WHOIS, RDAP supports multiple languages and character sets.
  • structured data: it delivers information in a standardized format, making it easier to process.
  • more control over data: RDAP allows differentiated access, meaning some users (like law enforcement) may see more details than the general public.

ICANN-accredited registrars and gTLDs have already supported RDAP since 2019, so the transition has been in the works for a while.

Source: https://www.icann.org/en/announcements/details/icann-update-launching-rdap-sunsetting-whois-27-01-2025-en

So let’s use the RDAP service.

You will need a RDAP client. Here’s how to install it:

Requirements

  • Ubuntu/Debian-based system

  • git

  • golang (Go language compiler)

 

Step-by-Step Installation

🔹 1. Install Go and Git

sudo apt update
sudo apt install golang-go git -y

📝 This installs Go from Ubuntu repositories. For newer versions, visit: https://go.dev/dl


🔹 2. Clone the OpenRDAP repository

cd ~
git clone https://github.com/openrdap/rdap.git

🔹 3. Navigate to the RDAP CLI source folder

cd ~/rdap/cmd/rdap

Check that main.go is present:

ls main.go

🔹 4. Build the rdap binary

go build -o rdap

You should now have a binary file named rdap.

Check it’s a proper Linux binary:

file rdap

Expected output:

rdap: ELF 64-bit LSB executable, x86-64 ...

🔹 5. Move the binary to your PATH

sudo mv rdap /usr/local/bin/
sudo chmod +x /usr/local/bin/rdap

🔹 6. Test the RDAP client

rdap 8.8.8.8
rdap example.com
The output should look like this:

Enjoy!