# 使用自己的網域設定 SRV 連線

{% hint style="warning" %}
基岩版不可使用 SRV 設定的網域進行連線。
{% endhint %}

{% hint style="info" %}
這邊以 Cloudflare DNS 來做演示。
{% endhint %}

1. 點擊 「新增紀錄」。

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

2. 將類型更換至 SRV 。

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

3. 在名稱內輸入 **`_minecraft._tcp.<子網域名稱>`** ，如果不輸入子網域名稱，將會使用頂網域。\
   像是你的頂網域是 cheapserver.tw，然在名稱輸入 **`_minecraft._tcp.mc`**，就會使用mc.cheapserver.tw 來做連線；在名稱輸入 **`_minecraft._tcp` ，就會使用** cheapserver.tw 來做連線。\
   \
   優先序：0\
   權數：0\
   TTL：自動

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

3. 前往控制面板查看你的伺服器連線位置，點擊複製

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

5. 假如你伺服器的連線位置是 `tw-5.cs-nodes.net:30628`，則目前就是 `:` 前的 `tw-5.cs-nodes.net`，連接埠就是 `:` 後的 `30628` 數字。

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

5. 最後按下儲存就大功告成的！

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

6. 你就可以使用剛剛所設定的網域進行連線。


---

# Agent Instructions: 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.cheapserver.tw/game/minecraft/srv.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.
