> For the complete documentation index, see [llms.txt](https://docs.glesys.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.glesys.com/products/connectivity/domains-and-dns/how-tos/buy-a-domain-name.md).

# Buy a domain name

It's possible to buy/register domain names through Glesys.

***

## Buy a domain name using the control panel

You can purchase (register) domain names through Glesys. This is done in the DNS service by clicking **Register**.

<figure><img src="https://3379166260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMZhhdQNcWOpX5Bj48GK%2Fuploads%2FhqILZO1nxegsBXV4Gco4%2Fdns-register-domain.png?alt=media&amp;token=e630740b-da49-4f65-b118-9d68586ee9d0" alt=""><figcaption></figcaption></figure>

In the next dialog box, search for the domain name you want to register. You can search without the top-level domain (TLD) to see all available TLDs for the desired name. Once you find the domain name you want, click the green plus sign next to the name. The domain will then be added to our cart.

<figure><img src="https://3379166260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMZhhdQNcWOpX5Bj48GK%2Fuploads%2FkeQbpQuzlnCc589BN2zm%2Fdns-search-for-name.png?alt=media&amp;token=4b754f3e-d91e-40f9-a139-ca81908542a5" alt=""><figcaption></figcaption></figure>

To purchase the domain name, click **Confirm Owner Details**.

<figure><img src="https://3379166260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMZhhdQNcWOpX5Bj48GK%2Fuploads%2FPwdyOSUs7DRBcx9Dsc16%2Fdns-confirm-owner-details.png?alt=media&amp;token=372a372b-5821-495a-a3ff-8511c3341e46" alt=""><figcaption></figcaption></figure>

In the dialog box that opens, enter the ownership details for the domain name and click **Confirm Purchase**.

<div align="left"><figure><img src="https://3379166260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMZhhdQNcWOpX5Bj48GK%2Fuploads%2FYKEsvfaJYyJkuZPQwNUM%2Fdns-confirm-and-purchase-name.png?alt=media&amp;token=dfc0c18a-ed55-4c00-8e0d-0c63cc9c5eb4" alt=""><figcaption></figcaption></figure></div>

Once the purchase is complete, the domain will appear in the overview of the DNS service. Here, you can manage the domain name, such as setting up DNS records or switching to custom DNS servers.

## Buy a domain name using the API

First, add the domain to Glesys DNS using the [domain/add](https://github.com/GleSYS/API-docs/wiki/API-Documentation#domainadd) endpoint of the [API](/platform/control-panel/api.md). Then, buy the domain using the [domain/register](https://github.com/GleSYS/API-docs/wiki/API-Documentation#domainregister) endpoint. You can also use the [domain/pricelist](https://github.com/GleSYS/API-docs/wiki/API-Documentation#domainpricelist) endpoint to list all the current prices for registrations and transfers.
