Common Issues
Bootstrap Discovery Failures
Error: “No RDAP servers found”
Cause: The bootstrap service couldn’t find an authoritative RDAP server for your query.Solutions
Solutions
For domain queries:
-
Check if the TLD is valid:
-
Update your bootstrap configs:
-
Use explicit server override:
-
For ccTLDs not in IANA bootstrap, add to
~/.config/rdap/tlds.local.json:
- Verify the IP format is correct (standard or CIDR)
- Some IP ranges may not have RDAP coverage yet
- Ensure the AS number exists and is allocated
- Try with or without “AS” prefix:
rdap 15169orrdap AS15169
Error: “Failed to fetch registry: HTTP 404”
Cause: IANA bootstrap file not found or URL changed.Solutions
Solutions
-
Update bootstrap URLs:
-
Check IANA bootstrap service status:
- Visit: https://data.iana.org/rdap/
- Verify files are accessible:
dns.json,asn.json,ipv4.json,ipv6.json
-
Manual config override:
Create
~/.config/rdap/config.local.json: -
Clear cache:
Query Type Detection Issues
Issue: Single-word query treated as domain instead of TLD
Example:rdap google queries google as a domain instead of the .google TLD.
Solutions
Solutions
-
Update TLD list:
This downloads the latest
tlds.txtfrom IANA. -
Explicitly specify query type:
-
Use full domain syntax for domains:
- Single word → Check if it’s in IANA TLD list → If yes: TLD, if no: check if numeric
- If numeric → AS number
- Otherwise → Domain
Issue: IP address not recognized
Example: Shorthand IP1.1 not being detected as IP.
Solutions
Solutions
The client supports shorthand IPs and should auto-detect them. If detection fails:
-
Use full IP notation:
-
Explicitly specify type:
-
Use CIDR notation:
1.1→1.0.0.18.8→8.0.0.8192.168→192.168.0.0
HTTP and Network Errors
Error: “HTTP error: 400 Bad Request”
Cause: The RDAP server rejected the query as malformed.Solutions
Solutions
-
For IPv6 queries:
Some servers don’t support host-level IPv6 queries. The client auto-retries with CIDR:
If auto-retry fails, manually use CIDR:
-
Check query format:
- Domain:
example.com(no trailing dot unless intentional) - IP: Valid IPv4 or IPv6 address
- AS: Numeric only, AS prefix optional
- Domain:
-
Try different server:
Error: “HTTP error: 404 Not Found”
Cause: The resource doesn’t exist in the RDAP server’s database.Debugging
Debugging
-
Verify the resource exists:
- Check domain registration elsewhere (DNS lookup)
- Verify IP allocation (WHOIS)
- Confirm AS number is allocated
-
Check if you’re querying the right server:
-
Some registries may not have RDAP data:
- Not all registries have transitioned from WHOIS to RDAP
- Some objects may exist in WHOIS but not RDAP yet
-
For recently registered domains:
- RDAP data may lag by a few hours
- Try again later or use
--serverto query registrar directly
Error: “Connection timeout” or “Connection refused”
Cause: Network connectivity issues or server is down.Solutions
Solutions
-
Increase timeout:
-
Check internet connectivity:
-
Verify firewall/proxy settings:
- Ensure outbound HTTPS (port 443) is allowed
- Check if corporate proxy is interfering
-
Try alternate bootstrap servers:
Edit
~/.config/rdap/config.local.jsonwith mirror URLs if available. -
Use explicit server:
Registrar Referral Issues
Issue: Missing registrar data for domain
Cause: Registrar doesn’t provide RDAP endpoint or referral link is broken.Solutions
Solutions
-
Check if registry provides referral link:
-
Some registries don’t include referral links:
- This is compliant with RDAP spec
- You’ll only get registry-level data
-
Disable referral following to see registry-only data:
-
Manually query registrar if you know the URL:
Error: “Failed to fetch registrar data”
Cause: Registrar’s RDAP server is unreachable or returned an error.Debugging
Debugging
-
View detailed error with verbose mode:
-
Client falls back to registry-only data:
- The query still succeeds with registry data
- Warning is logged about registrar fetch failure
-
Try querying registrar directly:
-
Report to registrar if consistently failing:
- May indicate misconfigured RDAP server
- Some registrars still transitioning to RDAP
Configuration Problems
Issue: Config updates fail
Error: “Failed to update config.json” or similar.Solutions
Solutions
-
Check permissions:
-
Verify internet connectivity:
-
Check disk space:
-
Manual update:
Issue: Local overrides not working
Problem: Changes to*.local.json files not taking effect.
Solutions
Solutions
-
Verify file location:
Files must be in
~/.config/rdap/, not/etc/rdap/ -
Check JSON syntax:
If this errors, you have invalid JSON.
-
Verify file is being loaded:
-
For TLD overrides, ensure correct format:
Keys are TLDs (lowercase), values are base RDAP URLs with trailing slash.
Cache Issues
Issue: Stale bootstrap data
Symptom: Bootstrap lookups returning old or incorrect servers.Solutions
Solutions
-
Clear cache:
-
Update configs and cache:
-
Adjust cache TTL:
Edit
~/.config/rdap/config.local.json:Lower value = more frequent bootstrap fetches, higher latency but fresher data. -
Disable caching (for debugging):
Debugging Techniques
Verbose Mode
JSON Output for Inspection
Testing Bootstrap Matching
Checking Configuration Precedence
Network Debugging
Error Message Reference
Complete Error Messages
Complete Error Messages
Bootstrap Errors
| Error | Cause | Solution |
|---|---|---|
No RDAP servers found | Bootstrap matching failed | Update configs, check TLD overrides, use explicit server |
Failed to fetch registry: HTTP {code} | Bootstrap file inaccessible | Check IANA service status, update config URLs |
Entity queries require explicit server | No bootstrap for entities | Use -s flag with server URL |
HTTP Errors
| Error | Cause | Solution |
|---|---|---|
HTTP error: 400 | Malformed query | Check query format, try CIDR for IPv6 |
HTTP error: 404 / NotFound | Resource doesn’t exist | Verify resource exists, check server |
HTTP error: 429 | Rate limited | Slow down queries, wait and retry |
HTTP error: 500 | Server error | Try later, use alternate server |
HTTP error: 503 | Service unavailable | Server maintenance, retry later |
Query Errors
| Error | Cause | Solution |
|---|---|---|
Invalid IP address: {ip} | IP format invalid | Use standard notation or CIDR |
Invalid AS number: {asn} | Non-numeric AS value | Ensure numeric, AS prefix optional |
Invalid query: {msg} | General validation failure | Check query format |
Network Errors
| Error | Cause | Solution |
|---|---|---|
Connection timeout | Network slow/unreachable | Increase timeout, check connectivity |
Connection refused | Server down or firewall | Check server status, verify port 443 open |
DNS resolution failed | DNS issues | Check DNS settings, try alternate DNS |
JSON Errors
| Error | Cause | Solution |
|---|---|---|
JSON parse error | Invalid JSON from server | Report to server operator |
Invalid RDAP response | Non-JSON or malformed | Use verbose mode, save response for bug report |
I/O Errors
| Error | Cause | Solution |
|---|---|---|
Permission denied | Can’t write config/cache | Check file permissions |
No such file or directory | Config path issue | Create directory: mkdir -p ~/.config/rdap |
Disk full | No space for cache | Free disk space or clear cache |
Performance Troubleshooting
Slow Queries
Optimization Tips
Optimization Tips
-
Enable caching (default):
- First query fetches bootstrap (slow)
- Subsequent queries use cache (fast)
-
Pre-warm cache:
-
Use explicit server to skip bootstrap:
-
Batch queries in scripts:
-
Reduce timeout for faster failures:
High Memory Usage
Solutions
Solutions
-
For CLI usage:
- Memory usage is minimal (typically less than 10 MB)
- If high, may indicate network buffering of large responses
-
For library usage with many queries:
-
Limit JSON output size:
Getting Help
Before Reporting Issues
Information to gather:
-
Version:
-
Verbose output:
-
Configuration:
-
Platform:
-
Network:
Reporting Bugs
When opening an issue:- Provide minimal reproducible example
- Include verbose output
- Attach JSON response if relevant (
-f json-pretty) - Specify platform and version
- Describe expected vs actual behavior
Community Support
- GitHub Issues: https://github.com/xtomcom/rdap/issues
- Documentation: This site and README.md
- RDAP Specification: IETF RFCs 7480-7484
