> For the complete documentation index, see [llms.txt](https://kb.winterzone.se/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.winterzone.se/minecraft/categories/minecraft-101/how-to-connect-a-domain-to-your-minecraft-server.md).

# How to connect a domain to your Minecraft server

Before we start you will need a domain. You can purchase a domain from registrars such as Namecheap, GoDaddy or us!

1. Visit your domain provider and locate the "Advanced DNS Zone". It may be called "DNS Zone" or "Advanced DNS", or anything similar.
2. Add an A record:
   1. Set the name/subdomain to the subdomain you wish to use (e.g. play or mc), or @ if you don't want to use a subdomain
   2. Set the value/IP Address to your server IP (excluding the port)

&#x20;   3\. Add an SRV Record:

{% hint style="warning" %}
**Warning**: Depending on your domain registrar you might experience issues. Make sure your domain registrar supports SRV records. If your registrar doesn't support SRV records we **recommend** switching your nameservers to [Cloudflare](https://www.cloudflare.com/). (A guide is being worked on as of Apr 11, 2020)
{% endhint %}

1. Set the target as the sub-domain you used above, including the main domain (e.g. [play.example.com](http://play.example.com) or [mc.example.com](http://mc.example.com)), or to the main domain if you don't want to use a sub-domain (e.g. [example.com](http://example.com))
2. Set the name to the sub-domain you used, for example, play or mc, or @ if you don't want to use a sub-domain.
3. Set the protocol to '\_tcp'
4. Set the service to '\_minecraft'
5. Set the priority to 5
6. Set the weight to 0

{% hint style="warning" %}
**Warning:** DNS changes may take up to 48 hours to update, although most popular registrars update them instantly.
{% endhint %}


---

# 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, and the optional `goal` query parameter:

```
GET https://kb.winterzone.se/minecraft/categories/minecraft-101/how-to-connect-a-domain-to-your-minecraft-server.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
