Сеть4 мин чтения
SRV records for Minecraft, done right the first time
The exact fields, the two mistakes everybody makes, and how to verify the record before you announce the address.
Эта статья пока на английском. Мы её переводим.
An SRV record lets players join with play.example.com instead of an address and a port. The record itself is four fields and a target, and almost every failed attempt is one of the same two mistakes.
The fields
- Service: _minecraft. Protocol: _tcp. Both keep the leading underscore.
- Name: the subdomain you want, or the root if you want the bare domain.
- Priority and weight: zero and five are fine, and nothing here depends on them.
- Port: the server's actual port. Target: a hostname, never an IP address.
The two mistakes
Putting an IP address in the target, which is not valid and fails silently, and forgetting that the target itself needs an A record pointing at the server. Create the A record first, then the SRV record aimed at it.