> 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

***

## 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="/files/T4zhrGdzvoVNsEHwhN21" 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="/files/U9388fB25NN2AymLixy2" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/NeHMDEVzIAdSSw2Q1zEx" 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="/files/6MgpivQTkrCFUcEuewXW" 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.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.glesys.com/products/connectivity/domains-and-dns/how-tos/buy-a-domain-name.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
