
Deploy Whois | Next Whois
Better Whois Lookup Tool With Modern UI.
whois
Just deployed
Redis
Just deployed
/data
Deploy and Host Next Whois on Railway
Next Whois is a fast, modern WHOIS and RDAP lookup tool built with Next.js. It allows users to perform lookups for domains, IPv4, IPv6, ASNs, and CIDR blocks with an RDAP-first approach and WHOIS fallback. Designed with a responsive interface, dark/light themes, dynamic Open Graph image generation, and multi-language support, it caters to network administrators, developers, and web professionals.

About Hosting Next Whois
Deploying Next Whois on Railway provides a scalable, low-latency web service for executing domain and IP queries. Railway automatically builds and runs the application using its built-in Dockerfile configuration without requiring custom build steps.
For performance optimization, Next Whois supports an optional Redis database integration to cache lookup results and manage rate limits. Networking and HTTPS termination are handled seamlessly by Railway's edge network, providing a public URL over standard HTTP/HTTPS ports. The application operates as a stateless web service by default, but connecting an optional Redis instance ensures cached responses and faster response times across repeat queries.
Common Use Cases
- Network & Domain Administration: Perform fast WHOIS and RDAP lookups to inspect registrar details, domain expiration dates, and nameserver configurations.
- IP & Network Intelligence: Analyze IPv4, IPv6, ASN, and CIDR network blocks with formatted, human-readable status descriptions.
- Developer API & OG Image Service: Integrate programmatic WHOIS lookups using the
/api/lookupendpoint and generate dynamic Open Graph preview images via/api/og.
Dependencies for Next Whois Hosting
Deployment Dependencies
Implementation Details
Docker
Next Whois includes a Dockerfile in its repository. Railway automatically detects and builds the application image using Docker without requiring custom build parameters.
Public Networking
- Proxy Type: HTTP Proxy
- Target Port: 3000
Environment Variables
| Variable | Required | Description |
|---|---|---|
NEXT_PUBLIC_SITE_TITLE | No | Overrides default site title (Default: Next Whois) |
NEXT_PUBLIC_SITE_DESCRIPTION | No | Overrides default site description |
NEXT_PUBLIC_SITE_KEYWORDS | No | Overrides default site keywords |
NEXT_PUBLIC_HISTORY_LIMIT | No | Maximum local history items stored in browser (-1 for unlimited) |
NEXT_PUBLIC_MAX_WHOIS_FOLLOW | No | Maximum domain WHOIS follow depth (Default: 0) |
MOZ_ACCESS_ID | No | Moz API Access ID for domain metrics (DA/PA/Spam Score) |
MOZ_SECRET_KEY | No | Moz API Secret Key |
REDIS_HOST | No | Redis hostname for caching (Leave empty to disable cache) |
REDIS_PORT | No | Redis port (Default: 6379) |
REDIS_PASSWORD | No | Redis authentication password |
REDIS_DB | No | Redis database index (Default: 0) |
REDIS_CACHE_TTL | No | Cache TTL in seconds (Default: 3600) |
Raw Editor Example:
NEXT_PUBLIC_SITE_TITLE=Next Whois
NEXT_PUBLIC_HISTORY_LIMIT=-1
NEXT_PUBLIC_MAX_WHOIS_FOLLOW=0
REDIS_HOST=${{Redis.REDISHOST}}
REDIS_PORT=${{Redis.REDISPORT}}
REDIS_PASSWORD=${{Redis.REDISPASSWORD}}
REDIS_CACHE_TTL=3600
Persistent Storage
Persistent volumes are not required for Next Whois. Application history and preference states are handled client-side or cached in memory/Redis.
Database
An optional Redis service can be attached to cache WHOIS responses and speed up query processing.
To attach Redis:
- Add a Redis service to your Railway project.
- Reference the generated Redis environment variables (
REDIS_HOST,REDIS_PORT,REDIS_PASSWORD) within the Next Whois service variables.
Build & Start
No custom build or start commands are required. Railway automatically builds and deploys the application using the repository's Dockerfile.
Accessing the Application
- Open the Next Whois service in your Railway project dashboard.
- Navigate to Settings → Networking and click Generate Domain.
- Access the application via the generated URL.
- No initial login or admin setup is required; the WHOIS web interface,
/docsinteractive documentation, and API endpoints are immediately available:
- WHOIS/RDAP API Endpoint:
GET /api/lookup?query=example.com(Executes parallel queries, merges results, and returns formatted along with raw WHOIS responses). - Dynamic OG Image Endpoint:
GET /api/og?query=example.com(Generates dynamic Open Graph preview images on demand).
Why Deploy Next Whois on Railway?
Railway is a modern app hosting platform designed to simplify the deployment and management of applications. It offers automatic deployments from GitHub, built-in CI/CD, and seamless integration with databases and other services. Railway provides a developer-friendly interface, powerful CLI tools, and automatic scaling, making it an ideal choice for hosting web applications, APIs, and background workers.
Template Content
whois
bilalnawaz072/whoisRedis
redis:8.2.1