Skip to main content
This guide covers a more realistic registration flow than the quickstart: searching by keyword instead of one exact domain, reviewing pricing, and setting up DNS automatically as part of the purchase.

Search for available domains

Instead of checking one domain at a time, search by keyword to get a list of available suggestions across TLDs.
The response lists each candidate domain with its availability and price:
tlds is optional, omit it to search the registrar’s default set of extensions.

Register the domain with DNS set up automatically

When you purchase a domain, you can set setup_dns to true so Dotlet creates a DNS zone for it immediately, instead of requiring a separate setup call.
The response includes a dns_setup object and a status_url you can poll while the zone is created and nameservers propagate:

Check DNS setup progress

DNS setup happens asynchronously; creating a zone, updating nameservers at the registrar, and verifying delegation can take a few minutes. Poll the status endpoint until status reaches completed.
ns_delegation_verified flips to true once the new nameservers have propagated. Until then, the domain still resolves through its previous configuration.
If you didn’t set setup_dns during purchase, trigger it later with POST /registrar/domains/{domain}/setup-dns, it accepts the same dns_provider field.

What didn’t get covered here

  • Manual nameserver control: if you manage DNS with a provider other than the ones Dotlet integrates with, skip setup_dns and point nameservers yourself with PUT /registrar/domains/{domain}/nameservers.
  • Reviewing price before charging: to show a customer a price and get their confirmation before billing, create an order with POST /registrar/order instead of purchasing directly.

Next steps

Manage DNS records

Add and edit individual DNS records once your zone exists.

Orders

Reference for creating and tracking orders separately from a direct purchase.