# 独自ドメイン利用時におけるDNSの設定

独自ドメインを利用する際は、SRVレコード(Java版エンドポイント) / CNAMEレコード(統合版エンドポイント) の設定が必要です。

### TCP・Java版をご利用の方

SRV（またはCNAME）レコードを設定する必要があります。利用しているDNSサービスによっては、稀にSRVレコードに対応していない場合があります。\
\
**CNAMEで指定する場合**\
\&#xNAN;*CNAMEレコードでターゲットをリスナーのドメイン(`○○.jp.normal.nohit.cc`) に向けてください。*\
\
\
**SRVで指定する場合**\
`サービス名 : minecraft`\
`プロトコル : _tcp`\
`ホスト名 : 任意のサブドメインまたはドメイン`\
`TTL : 任意(3600)`\
`PRIORITY : 任意(0)`\
`WEIGHT : 任意 (0)`\
`ポート : 記載されているポート(25565)`\
`ターゲット : ○○.jp.normal.nohit.cc`

#### 設定例)

<figure><img src="/files/oJoT6X2nv7KswkyAzZfJ" alt=""><figcaption><p>Cloudflare (CNAME)</p></figcaption></figure>

<figure><img src="/files/wd42wofB5ap2IKw5SrDC" alt=""><figcaption><p>Cloudflare (SRV)</p></figcaption></figure>

<figure><img src="/files/OUlXQ2N2hs3HvLwcxNZ4" alt=""><figcaption><p>お名前.com (SRV)<br> ※ポートは25565で間違いありません</p></figcaption></figure>

### ~~UDP・統合版をご利用の方~~

~~CNAMEレコードを設定する必要があります。利用しているDNSサービスによっては、CNAMEレコードに対応していない場合があります。~~\
\
~~CNAMEレコードを以下のように設定します。~~\
~~`ホスト名 : 任意のドメインまたはサブドメイン`~~\
~~`TTL : 任意(3600)`~~\
~~`値 : リスナーのIP (例: ○○.jp.udp.nohit.cc)`~~\
**UDPの提供は終了しました。(24年3月)**

{% hint style="info" %}
DNSの反映には時間がかかる場合があります。
{% endhint %}


---

# 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.nohit.cc/settings/dns-setup.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.
