Shuxing subdomain distribution: cumulative update on July 22

2026-07-22

New Features

  • WHOIS Query JSON API: Added the whois/api/index.php JSON interface, allowing external systems to query public domain WHOIS information via GET /whois/api/?query=api.example.com
  • Domain Validity Period Management: Added three configuration options—domain registration duration, renewal advance period, and renewal duration—with flexible configuration in the admin panel
  • Database Changes: Added the expires_at field (DATETIME; NULL indicates permanent validity) to the domains table
  • Registration Duration: The number of months a domain remains valid upon the user’s initial registration (0 = permanently valid)
  • Renewal Advance Period: The number of months before expiration during which renewal is allowed (0 = renewal not allowed)
  • Renewal Duration: The number of months added with each renewal (0 = renewal not allowed)

New Files

  • module/whois/api.php — WHOIS query core function whois_api_lookup() + JSON output function whois_api_json()
  • whois/api/index.php — WHOIS API entry point, returns a JSON response

Feature Improvements

  • Refactored whois/index.php to call whois_api_lookup(), eliminating code duplication
  • Added an „Expiration Time“ column to the user’s „My Domains“ page, displaying the expiration status (normal/expiring soon/expired/permanently valid)
  • Added a „Renew“ button to the user’s „My Domains“ page, allowing one-click renewal during the renewal advance period before expiration
  • Added an „Expiring Domains“ reminder section to the user’s „Overview“ page
  • When a domain application is automatically approved or approved by an administrator, the expiration time is automatically set according to the registration duration

Database Changes

-- Add the expires_at field to the domains table (must be added manually if it does not exist)
ALTER TABLE `domains` ADD COLUMN `expires_at` DATETIME DEFAULT NULL COMMENT 'Expiration time; NULL indicates permanent validity' AFTER `assigned_to`;
4 Likes

Giving you a thumbs-up, plus some stars :sparkles:

2 Likes

Give it a like

1 Like

Anyone who can develop projects is a real pro.

1 Like

Is this for registering domains, or for managing them?

A system for managing second-level domains, similar to Happy DNS (except that competing products like theirs are mostly either piles of garbage or paid services). That’s why we developed this completely free, extremely lightweight, modern system that’s very easy to customize and extend.

1 Like

What domain name is it?