Skip to content

How to Check a Domain's Expiry Date with RDAP or WHOIS

Public registration data can tell you when a domain expires. This guide shows how to read it with RDAP and WHOIS, from a browser or a terminal, and what the results can and cannot tell you.

9 min readUpdated Nov 18, 2026By XPASS Editorial Team

How to Check a Domain's Expiry Date with RDAP or WHOIS

Your registrar's control panel is one place to see when a domain expires, but it is not the only one, and for several situations it is not the best one. Public registration data lets anyone, including you, verify the date directly from the registry side. That helps when you manage a domain for a client, when you are considering a domain someone else owns, when you want to confirm that a renewal really went through, or when you simply do not trust a single dashboard. This guide explains the two lookup systems in use today, RDAP and WHOIS, how to run them from a browser and from a terminal, and how to read what comes back.

WHOIS and RDAP in plain terms

WHOIS is the older system. It is a simple request and response protocol described in RFC 3912. You send a domain name to a server, and it returns plain text. Because the text has no fixed structure, each registry formats it a little differently, which makes automated parsing fragile.

RDAP, the Registration Data Access Protocol, is the modern replacement. It runs over HTTPS, returns structured JSON, and supports things that WHOIS cannot do well, such as standard error codes, differentiated access for different users, and a defined way to find the correct server for each extension. ICANN, which coordinates policy for generic top-level domains, has moved registries and registrars toward RDAP, and many registries now present RDAP as the primary service. Details differ by extension, so the safest assumption is that both exist for a while and that a country-code extension may offer only one of them.

Feature WHOIS RDAP
Transport Plain TCP text, often port 43 HTTPS
Format Free text, differs by registry Structured JSON
Finding the right server Often guessed or hard-coded Defined lookup of the server per extension
Access control Little Can differ by user type
Easy to automate Fragile Yes

For checking an expiry date, either works. RDAP is more reliable when you want a script, and WHOIS is quicker when you just want to type a command.

What the expiry fields look like

The words differ, but the idea is the same. In WHOIS output, look for lines such as:

  • Registry Expiry Date
  • Registrar Registration Expiration Date
  • Expiration Date or Expires On, depending on the extension

In RDAP output, the dates are inside an events array. Each item has an action and a date. The entry with the action expiration is the one you want. You will also see registration (when the domain was first registered), last changed, and sometimes last update of RDAP database. These are useful context, but they are not the deadline.

The registry date and the registrar date are not always identical. The registry holds the master record, and the registrar may show its own view, sometimes including its own processing buffer. When the two differ, treat the registry date as authoritative and the earlier of the two as the safe deadline.

Checking from a browser

The easiest method needs no installation.

  1. Open a lookup page. Many registries and registrars operate their own lookup, and there are also public lookup websites. ICANN offers a lookup tool for generic domains as well. Look for one that says it queries RDAP.
  2. Type the domain in the form of example.com, without https:// and without a path.
  3. Read the Expiration or Registry Expiry Date line, and also the status values listed.
  4. Note the time zone. Dates are normally in UTC, so a domain that "expires on the 10th" may show as the 9th or the 11th in your local time.

Use a lookup you trust. A site that asks for your email or a login to display public data deserves some suspicion.

Checking from a terminal

On macOS and many Linux systems, the whois command is available or can be installed through the system package manager.

  1. Run whois example.com in a terminal.
  2. Scroll to the Registry Expiry Date line. If the output is long, you can filter it with grep, for example by searching for the word Expir.
  3. Note that some extensions return little or nothing without specifying a server. Read the line that says which server answered, and if needed point the command to the registry's own server.

For RDAP you only need an HTTP client such as curl.

  1. Request the domain through an RDAP bootstrap redirector, a public service that forwards your request to the right server for the extension. Your request is a normal HTTPS GET, with example.com replaced by your domain.
  2. The response is JSON. Pipe it into a JSON tool such as jq to print the events array, or simply read it in a text editor.
  3. Find the event whose eventAction is expiration, and read its eventDate, which uses a standard date and time format ending in Z for UTC.

A short script that loops over a list of domains is a natural next step. See How to set up renewal reminders when you own many websites for how to turn a one-off check into a routine.

Reading the status values

The expiry date is only one part of the picture. The status codes next to it often tell the more urgent story.

  • ok or active means nothing unusual: the domain is registered and working.
  • clientTransferProhibited is a lock set by the registrar to prevent unauthorised transfers. It is normal and good for a live domain.
  • clientHold or serverHold means the domain has been suspended from the DNS. That may be caused by a billing issue, a verification problem, or a dispute. Check it quickly.
  • autoRenewPeriod suggests that the domain has passed its expiry date but is still within the registrar's automatic renewal window.
  • redemptionPeriod means that the domain has been deleted from the DNS and can only be recovered through a restore. We explain what that costs and why in What is the Redemption Period and why is restoring so expensive.
  • pendingDelete means the final stage before the name is released.

If you see a date in the past and a status like redemptionPeriod, the domain is not just expiring, it has already lapsed. The grace period rules for that situation are covered in Is there a grace period when a domain expires?.

A plain example

Suppose an agency manages five client domains, and one client claims they renewed last week. The agency wants to verify.

  1. The agency looks up the domain in RDAP and finds the expiration event dated about a year after the registration date, which is what a renewal for one year would produce. The status is ok.
  2. The registration event is old, as expected, but the last changed event is from last week. That matches the client's story: something was changed, probably the renewal.
  3. The agency compares with the registrar's panel and finds the same date. Because both agree, the agency records the new date in its list and sets the reminder for a few weeks before it.
  4. For a second domain the RDAP expiration is only six days away, although the client thought it was paid. The agency contacts the client the same day, instead of discovering the problem when the site goes down.

The lesson is not that the dashboard is wrong, it is that two independent views give more confidence than one.

Limits and what to watch for

Public lookups are helpful, but they have limits.

  • Privacy redaction. Names, emails, and phone numbers of registrants are commonly hidden or replaced by a privacy service, particularly for individuals. Do not expect to find the owner this way. The expiry date and status values usually remain visible.
  • Caching and delay. Some lookup sites cache results. After a renewal or transfer, the registry may update quickly while a third-party site shows the old date for a while. If a date looks wrong, query a different source.
  • Rate limits and terms. Registries limit how many queries you can send, and their terms may restrict bulk or commercial use of the data. Keep your checks modest, and read the terms if you plan to automate across many names.
  • Country-code extensions. These may have different fields, different wording, or no public expiry date at all. Some publish only registration status. In those cases the registrar panel is your only source for the date.
  • Expiry date is not the same as the last safe day. A date in the registration data is the contractual end of the registration, and services may behave unpredictably after it, even if a grace period exists.
  • Do not use this data to harass or spam anyone. Registration data is published for operational and legal purposes, and many registries prohibit using it for marketing or unsolicited contact.

Building a simple routine

Checking once is useful, but a routine is what prevents trouble. A workable approach for most owners is:

  1. List every domain, its registrar, and who pays.
  2. Record the registry expiry date from RDAP or WHOIS, not only from the panel.
  3. Create calendar reminders at 60, 30, and 7 days before the date, sent to an address that is not on the same domain.
  4. After each renewal, transfer, or payment change, check again and update the list.
  5. Look for unusual status codes, especially hold and redemption values, at the same time.
  6. If you move a domain between providers, re-check the expiry afterwards. Expiry rules after a move depend on the extension, so confirm with the actual data for your own domain instead of assuming.

Two quick worked readings

To make the fields concrete, imagine two lookups. In the first, the WHOIS text shows a Registry Expiry Date eleven months away, a status of clientTransferProhibited and nothing else unusual. That is a healthy domain: it is paid for, locked against unauthorised transfer, and not close to any deadline. Record the date and move on.

In the second, the RDAP events list shows an expiration date three weeks in the past, and the status list contains redemptionPeriod. The domain is no longer reachable and a normal renewal is no longer on offer. The right reaction is not to keep refreshing the page but to contact the registrar the same day, ask what a restore involves, and decide quickly whether the name is worth it. Reading both the date and the status together is what lets you tell these two situations apart in seconds.

Summary

RDAP and WHOIS give you a direct, public view of when a domain expires and what state it is in. RDAP is the modern, structured option, and WHOIS is the older text-based one. In both, the date you want is called the registry expiry or expiration, and in RDAP it sits in the events list. Read the status codes next to it, because holds and redemption values signal problems that the date alone does not. Remember the limits: redaction hides owner details, caches can show old values, some country-code extensions behave differently, and the time zone can shift the day. Combined with a short routine of reminders and re-checks after every change, these lookups turn expiry from a surprise into a scheduled task. If you want to register or manage domains where you can see the renewal date clearly, start with the domain page.

Frequently asked questions

What is the difference between RDAP and WHOIS?

WHOIS is an older plain-text protocol with no fixed format. RDAP is its modern replacement, which returns structured JSON over HTTPS, so it is easier for programs to read and supports better access control.

Which field shows when a domain expires?

In WHOIS look for Registry Expiry Date or Expiration Date. In RDAP look in the events list for the entry whose action is expiration.

Why do two tools show different expiry dates?

The registry and the registrar may each publish a date, and some tools cache old answers or show the time in a different time zone. The registry date is normally the authoritative one.

Can I find the owner of a domain with RDAP or WHOIS?

Often not. Personal data is commonly redacted, so you may see only a privacy proxy or a note that data is withheld. The expiry date and status codes are still usually visible.

How often should I check expiry dates?

For important domains check at least a few times a year, and always after a renewal, transfer, or change of payment method, so you can confirm the new date.

About the author

Bob Kanokphon Thongdee, founder of XPASS VPN

Bob Kanokphon Thongdee

  • Founder of XPASS VPN
  • Co-founder of eSIMonline.asia
  • More than 7 years in online marketing
  • Founder of Cojourney Visa and Cojourney Travel

Ready to register your domain?

Search a name, compare extensions and pay once for the years you choose.

.com registration from $18.81 for the first year

Search domains

Keep reading

Domain & DNS Guides

What Is the Redemption Period and Why Does Restoring a Domain Cost So Much?

The Redemption Period is the last safety net before an expired domain is deleted. This guide explains how it works, why restoring is billed above a normal renewal, and how to stay out of it.

10 min read

Domain & DNS Guides

How to Set Up Domain Renewal Reminders When You Own Many Websites

When you own many websites, one forgotten renewal can take a site and its email offline. This guide shows how to build a reliable reminder system with tools you already have.

9 min read

Domain & DNS Guides

Is There a Grace Period When a Domain Expires?

Many domains get extra days after expiry, but the length and the cost depend on the extension and the registrar. This guide explains the stages and what to do at each one.

9 min read