> For the complete documentation index, see [llms.txt](https://lodestone-technologies.gitbook.io/knowledgebase/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lodestone-technologies.gitbook.io/knowledgebase/minecraft-java/connect-a-custom-domain.md).

# Connect a custom domain

Using a custom domains means that your players can connect without using the numerical IP address of the server. This is useful for public community servers and networks.

{% hint style="info" %}
If you don't own a domain name to connect, we recommend using our [subdomain feature](/knowledgebase/game-panel/create-a-subdomain.md) to configure a free subdomain instead.
{% endhint %}

## Finding your server details

Head over to the [Game Panel](https://game.lodestone.host) and select "Server Details" on the sidebar menu.

<figure><img src="/files/tUakymlmeuKUVI47zLZV" alt=""><figcaption></figcaption></figure>

Under "Server Info", locate your server's IP and port, and make a note of them.

<figure><img src="/files/hygHisAZJwYheoDqANKN" alt=""><figcaption></figcaption></figure>

## Creating a A record

You'll need to use a domain registrar like [Cloudflare](https://cloudflare.com) to purchase a domain name.

Create a new DNS A record for your domain, with the following values:

```
Type: A
Name: <your subdomain>
IPv4 address: <your server IP address>
Proxy status (Cloudflare): DNS Only
TTl: Auto
```

<figure><img src="/files/RuHUayx1rDXjCyqd5VMI" alt=""><figcaption></figcaption></figure>

Save your changes once done.&#x20;

## Creating an SRV record

If you're using the default 25565 port, you don't need an SRV record.

Create a new DNS SRV record for your domain with the following values:

```
Type: SRV
Name: _tcp._minecraft.<your subdomain>
Priority: 0
Weight: 5
TTL: Auto
Port: <your server port>
Target: <the full domain name>
```

<figure><img src="/files/J004A2elh62943b7e4S6" alt=""><figcaption></figcaption></figure>

Save your changes once done.

Your changes will now process, but please allow up to 24 hours for the DNS records to update. Once everything has processed, your players can connect using the domain.


---

# 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://lodestone-technologies.gitbook.io/knowledgebase/minecraft-java/connect-a-custom-domain.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.
