To check a domain's expiration date, look up the Registry Expiry Date in whois or the expiration event in RDAP, for example with curl against rdap.verisign.com for .com. Watch the status too: autoRenewPeriod means the registry auto-renewed after expiry and payment may still be pending. Some ccTLDs, including .de, publish no expiry date at all.
Expired domains are rarely a technical failure. The card on file expired, the renewal emails went to a colleague who left two years ago, or the reminder landed in spam. Knowing your expiry dates gives you time to fix that. The trouble is that the date isn’t in the same place for every ending, the .com date can be misleading, and some country codes don’t publish one.
Check a domain expiration date with whois
For generic TLDs the field is called Registry Expiry Date:
whois example.com | grep -i 'expir'
Registry Expiry Date: 2027-08-13T04:00:00Z
Some registrars add a second line, Registrar Registration Expiration Date. The registry date is the authoritative one. The guide on reading whois results explains why the two can differ.
Check it with RDAP
RDAP is more reliable for scripting because the field name never changes:
curl -s https://rdap.verisign.com/com/v1/domain/example.com \
| jq -r '.events[] | select(.eventAction=="expiration") | .eventDate'
2027-08-13T04:00:00Z
For other TLDs, swap the base URL or use https://rdap.org/domain/<name> with curl -sL, which redirects to the right registry. Background on the protocol is in RDAP vs whois.
Reading the timestamp correctly
Registries publish expiry times in UTC. A .com that expires at 2027-08-13T04:00:00Z lapses at 6 a.m. in Berlin in summer, and on the evening of 12 August on the US west coast. For a renewal you plan to make on the last day, that difference matters. Registrars also tend to run their own renewal jobs a few days ahead of the registry date, so the deadline in your account can be earlier than the one in whois.
The registrar date in whois is sometimes stored without a time at all, as 2028-10-09T00:00:00. Treat it as approximate and plan around the registry value.
The auto-renew trap at .com
This is where most misreadings happen. Verisign and many other gTLD registries automatically renew a domain for a year on its expiry date and charge the registrar. The registrar then has up to 45 days to hand the renewal back if its customer doesn’t pay.
So on expiry day, the whois date jumps a year ahead, paid or not:
| Moment | Registry Expiry Date | Status |
|---|---|---|
| 1 March 2026, before expiry | 2026-03-01 | clientTransferProhibited |
| 2 March 2026 | 2027-03-01 | autoRenewPeriod |
| registrar returns it on 30 March | deleted | redemptionPeriod |
The status tells the real story. autoRenewPeriod means the domain has expired and is in limbo. The domain status codes table lists the rest.
Endings without a public expiry date
Not every registry publishes one. DENIC, which runs .de, has open-ended contracts with holders, so neither its whois nor its RDAP has an expiration field:
curl -s https://rdap.denic.de/domain/denic.de | jq '.events'
[
{
"eventAction": "last changed",
"eventDate": "2024-12-19T13:33:43+01:00"
}
]
For endings like that, your registrar account is the only source of the renewal date. The guide to whois for .de domains explains how DENIC handles lapsed domains instead.
Monitoring many domains with a script
For a small portfolio, a shell script and cron are enough. This version uses BSD date as found on macOS:
#!/usr/bin/env bash
for d in example.com example.org example.net; do
exp=$(curl -sL "https://rdap.org/domain/$d" \
| jq -r '.events[] | select(.eventAction=="expiration") | .eventDate')
[ -z "$exp" ] && { echo "$d: no expiry date found"; continue; }
days=$(( ( $(date -j -u -f '%Y-%m-%dT%H:%M:%SZ' "$exp" +%s) - $(date +%s) ) / 86400 ))
[ "$days" -lt 30 ] && echo "WARNING $d expires in $days days" || echo "$d: $days days"
sleep 1
done
On Linux, replace the date call with date -d "$exp" +%s. A few registries return timestamps with milliseconds or offsets, so adjust the format if parsing fails. The sleep keeps you under the RDAP servers’ rate limits. Pipe warnings into email or a chat webhook and you have basic monitoring.
Domain or certificate?
When a site suddenly shows a browser warning, it’s usually the TLS certificate that expired, not the domain. Check the certificate like this:
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null \
| openssl x509 -noout -enddate
notAfter=Dec 25 22:56:35 2026 GMT
An expired certificate gives a browser warning. An expired domain stops resolving or shows a registrar parking page.
What ICANN requires of registrars
For gTLDs, ICANN’s Expired Registration Recovery Policy sets the reminders. Registrars must notify the registrant about one month and about one week before expiry, and again within five days after if the domain hasn’t been renewed or deleted. During at least the last eight days in which renewal is still possible, the domain has to be pulled from DNS, which is meant to get your attention. These notices go to the registrant email. If that’s outdated, you won’t see them. What happens after that is covered in the redemption grace period guide.
Should you register for several years?
gTLDs can be registered or renewed for up to ten years. That pushes the expiry date far out and protects a brand name against forgotten invoices. The downside is cash tied up in advance, and if you transfer later, .com adds a year to the existing term but the ten-year cap still applies.
If your registrar charges a stable yearly price and you keep a valid payment method on file, yearly auto-renewal is usually just as safe.
Avoiding the problem altogether
Three things beat any monitoring script: a registrant email that isn’t tied to one person, a payment method that doesn’t expire mid-term, and a registrar whose renewal price matches its registration price, so no surprise invoice gets ignored.
At betadomain, renewal costs the same as registration. A .com domain is €14.99 a year, a .co.uk €15.99, and the full list of yearly prices covers the other endings. For your own domains, the developer API returns expiry dates without going through public RDAP.
Step by step
- Run a whois or RDAP lookupUse whois example.com | grep -i expir or query the registry's RDAP server and read the expiration event.
- Use the registry dateThe Registry Expiry Date is authoritative. The registrar's date may lag or be formatted differently.
- Cross-check the statusautoRenewPeriod, redemptionPeriod or pendingDelete mean the domain has already expired, whatever the date says.
- Confirm in your registrar accountBilling and auto-renew settings live there. For ccTLDs without a public date, it's the only source.
- Automate the checkRun a small script on a schedule that warns when fewer than 30 days remain.
Found your domain? You can check and register it directly at check your domain – yearly price from €2.99.
FAQ
What happens when a domain expires?
With gTLDs, the registrar typically takes the domain out of DNS within days and shows a renewal notice. Depending on the registrar you can renew at the normal price for a few weeks, followed by a 30-day redemption grace period with a restore fee.
Why did my expiry date move forward a year without a renewal?
Many gTLD registries, Verisign included, auto-renew domains on the expiry date and charge the registrar. The registrar can return that renewal within up to 45 days if the customer doesn't pay. A new date isn't proof of payment.
Do registrars have to remind me before expiry?
For gTLDs, yes. ICANN's Expired Registration Recovery Policy requires reminders roughly one month and one week before expiry, and another within five days after if the domain hasn't been renewed or deleted.
Is the domain expiry date the same as the SSL certificate expiry?
No. They're unrelated. Domains usually renew yearly, Let's Encrypt certificates every 90 days. Check the certificate with openssl and the domain with whois or RDAP.