Skip to content
Shahid Malla
Domains and DNS In Stock

Cosmotown Domain Registrar Module for WHMCS

Register, transfer and renew Cosmotown domains from WHMCS, with DNS, contacts and ID protection, and slow registrations finished by the daily sync.

WHMCS 8.x and 9.x PHP 8.1 to 8.5 with cURL

What does the Cosmotown registrar module do?

It lets WHMCS sell and manage domains through your Cosmotown reseller account. Registrations, transfers and renewals go to Cosmotown when invoices are paid, and the usual domain tools in the admin and client areas (nameservers, contact details, registrar lock, ID protection, EPP codes and DNS records) talk to Cosmotown directly.

Version 3.0.0 is a rebuild against the WHMCS sample registrar module. The main reason was that Cosmotown registers domains asynchronously. After a registration request, the module waits a few seconds for it to complete, then applies the customer's nameservers, contacts and ID protection. If Cosmotown is still processing, that setup is stored and the WHMCS daily domain sync applies it later, or you press Apply Pending Setup on the domain page. A paid registration is never reported to WHMCS as failed just because a follow-up step failed, so the same domain is not registered twice.

What is included?

AreaWhat the module handles
OrdersRegistration, transfer and renewal, with an optional Cosmotown coupon on new registrations
ContactsCustomer set as registrant and contacts after registration, plus WHOIS editing
Domain controlsNameservers, registrar lock, ID protection and EPP codes
DNSA, AAAA, CNAME, MX and TXT records, with existing PTR records and TTLs kept
SearchAvailability checks and suggestions, including IDN names
SyncDaily expiry sync and transfer status sync with failure reasons
TestingSandbox mode and a Test Connection that makes a real authenticated request

Every request and Cosmotown's exact response go to the WHMCS Module Log when debug logging is on, with the API token and EPP codes masked.

Who is it for?

Hosting companies and domain resellers that buy domains at Cosmotown and want to sell them under their own brand in WHMCS. It suits shops that have been registering by hand in the Cosmotown dashboard, and anyone on an earlier version of this module, where contact details could not be loaded and saving DNS could turn PTR records into TXT records. Version 3.0.0 fixed both.

What do you need, and what are the limits?

Requirements: WHMCS 8.x or 9.x, PHP 8.1 to 8.5 with the cURL extension, a Cosmotown reseller account with an API token, and your WHMCS server's IP address allowed in the Cosmotown reseller settings. No extra libraries are bundled.

Limits: customers can edit A, AAAA, CNAME, MX and TXT records; other types Cosmotown does not accept are skipped and logged. With Auto-switch DNS on, saving records points the domain at Cosmotown's nameservers so the records take effect. The module does not offer email forwarding or glue record management, and premium or reserved names are shown as unavailable rather than sold at premium prices.

It costs $119 once for a lifetime license with twelve months of updates and support, an instant download and license key, and a seven-day refund window.

Key features

  • Domain registration, transfer and renewal
  • Optional Cosmotown coupon on new registrations
  • Customer details set as domain contacts after registration
  • Nameservers, registrar lock, ID protection and EPP codes
  • DNS editing for A, AAAA, CNAME, MX and TXT records
  • Availability checks and suggestions with IDN support
  • Delayed registrations finished by the daily sync or an admin button
  • Daily expiry sync and transfer status sync
  • Sandbox mode and an authenticated connection test
  • Module logging with the API token and EPP codes masked

Why customers buy this module

  • →Cosmotown domains sold and renewed without logging in to their dashboard
  • →No double registrations when a follow-up step fails
  • →Customers manage their own nameservers, contacts and DNS
  • →Clear logs make support questions to Cosmotown quicker to answer

Frequently asked questions

What happens if Cosmotown is still processing a new registration?

<p>The module waits a few seconds for the registration to complete. If it is still processing, the nameservers, contacts and ID protection are saved as a pending setup and the WHMCS daily domain sync applies them once the domain exists. You can also apply them straight away with the Apply Pending Setup button on the domain's admin page.</p>

Can I test it before selling real domains?

<p>Yes. Tick Sandbox Mode and enter a sandbox API token, and every call goes to the Cosmotown sandbox. The Test Connection button makes a real authenticated request, so a wrong token shows up as a failure instead of a false success.</p>

Which DNS records can customers edit?

<p>A, AAAA, CNAME, MX and TXT records, from the normal WHMCS DNS management page. Existing PTR records and TTLs are kept when records are saved. With Auto-switch DNS on, the domain is pointed at ns1 and ns2.cosmotown.com so the records take effect.</p>

Technical specifications

WHMCS
8.x and 9.x
PHP
8.1 to 8.5 with cURL
Registrar API
Cosmotown Reseller API, live and sandbox
DNS record types
A, AAAA, CNAME, MX, TXT
Version
3.0.0
License
Lifetime, 1 year of updates and support included
Delivery
Instant download and license key
Refund window
7 days