Skip to content

🧪 Your Next-Gen Whois Lookup Tool With Modern UI. Support Domain/IPv4/IPv6/ASN/CIDR Whois Lookup And Powerful Features. 🧪 现代代 Whois 查询工具, 支持域名 / IPv4 / IPv6 / ASN / CIDR 查询和强大功能

License

Notifications You must be signed in to change notification settings

lyrais/next-whois-ui

 
 

Repository files navigation

🧪 Next Whois UI

😎 Lightweight & Beautiful Whois Query Tool

English · 简体中文 · 繁體中文

Deploy to Vercel

Deploy to Netlify

😎 Features

No need to say more, just try it out! 🥳

  1. Pretty UI: Modern design with Shadcn UI, make you feel comfortable.
  2. 📱 Responsive: Works well on Mobile✅ / Tablet✅ / Desktop✅, PWA App Support.
  3. 🌈 Multi Theme: Multi theme support (Light & Dark), system theme detection, switch theme as you like.
  4. 🚀 Flexible Query: Powered by Next.js, support serverless deployment and fast query.
  5. 📚 Record History: History records are stored in local storage, easy to view and query history.
  6. 📡 Open API: Simple API for whois query, easy to integrate with other services.
  7. 🌍 IPv4 & IPv6 Whois: Support IPv4, IPv6, Domain, ASN, CIDR whois query.
  8. 📦 Result Capture: Capture whois result, easy to share and save.
  9. 📡 Whois Cache: Support whois cache based on Redis, improve query speed.
  10. 🌍 [WIP] Internationalization: Support multiple languages. (#6)

👉 Create Pull Request

Deploy

1 🚀 Platforms (Recommended)

Vercel / Netlify / Zeabur

2 🐳 Docker

docker run -d -p 3000:3000 programzmh/next-whois-ui

3 🔨 Source Code

git clone https://github.com/zmh-program/next-whois-ui
cd next-whois-ui

npm install -g pnpm
pnpm install
pnpm dev

📏 Envs

SEO

  • NEXT_PUBLIC_SITE_TITLE: Site Title
  • NEXT_PUBLIC_SITE_DESCRIPTION: Site Description
  • NEXT_PUBLIC_SITE_KEYWORDS: Site Keywords

WHOIS

  • NEXT_PUBLIC_HISTORY_LIMIT: History Limit (Default: 6)
  • NEXT_PUBLIC_MAX_WHOIS_FOLLOW: Max Domain Whois Follow (Default: 0)
  • NEXT_PUBLIC_MAX_IP_WHOIS_FOLLOW: Max IP Whois Follow (Default: 5)

CACHE

  • REDIS_HOST: Redis Host (CACHE DISABLED WHEN EMPTY)
  • REDIS_PORT: Redis Port (Default: 6379)
  • REDIS_PASSWORD: Redis Password (OPTIONAL)
  • REDIS_DB: Redis DB (Default: 0)
  • REDIS_CACHE_TTL: Redis Cache TTL Secs (Default: 3600)

📝 API Reference

GET /api/lookup?query=google.com

Response OK (200)
{
  "time": 1.547,
  "status": true,
  "cached": false,
  "result": {
    "domain": "GOOGLE.COM",
    "registrar": "MarkMonitor Inc.",
    "registrarURL": "http://www.markmonitor.com",
    "ianaId": "292",
    "whoisServer": "whois.markmonitor.com",
    "updatedDate": "2019-09-09T15:39:04.000Z",
    "creationDate": "1997-09-15T04:00:00.000Z",
    "expirationDate": "2028-09-14T04:00:00.000Z",
    "status": [
      {
        "status": "clientDeleteProhibited",
        "url": "https://icann.org/epp#clientDeleteProhibited"
      },
      {
        "status": "clientTransferProhibited",
        "url": "https://icann.org/epp#clientTransferProhibited"
      },
      {
        "status": "clientUpdateProhibited",
        "url": "https://icann.org/epp#clientUpdateProhibited"
      },
      {
        "status": "serverDeleteProhibited",
        "url": "https://icann.org/epp#serverDeleteProhibited"
      },
      {
        "status": "serverTransferProhibited",
        "url": "https://icann.org/epp#serverTransferProhibited"
      },
      {
        "status": "serverUpdateProhibited",
        "url": "https://icann.org/epp#serverUpdateProhibited"
      }
    ],
    "nameServers": [
      "NS1.GOOGLE.COM",
      "NS2.GOOGLE.COM",
      "NS3.GOOGLE.COM",
      "NS4.GOOGLE.COM"
    ],
    "registrantOrganization": "Unknown",
    "registrantProvince": "Unknown",
    "registrantCountry": "Unknown",
    "registrantPhone": "+1 2086851750",
    "registrantEmail": "Unknown",
    "rawWhoisContent": "..."
  }
}
Error Response Internal Server Error (500)
{
  "time": 0.609,
  "status": false,
  "error": "No match for domain google.notfound (e.g. domain is not registered)"
}
Error Response Bad Request (400)
{
  "time": -1,
  "status": false,
  "error": "Query is required"
}

🧠 Tech Stack

  • Next.js
  • Shadcn UI & Tailwind CSS
  • Whois Core Lib (@whois-raw)

💪 TLDs Support

👉 TLDs Whois Parser Lib Source Code

❤ TIP: The Whois Parser for some TLDs may not be currently compatible, thanks for contributing your Pull Request to make this project support more TLDs!

About

🧪 Your Next-Gen Whois Lookup Tool With Modern UI. Support Domain/IPv4/IPv6/ASN/CIDR Whois Lookup And Powerful Features. 🧪 现代代 Whois 查询工具, 支持域名 / IPv4 / IPv6 / ASN / CIDR 查询和强大功能

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 96.5%
  • CSS 2.6%
  • Other 0.9%