mojira.dev
MC-278651

Inconsistency in handshake host name for SRV records (status request/join)

Steps to Reproduce:
1. Create a SRV record like _minecraft._tcp.example.com pointing to minecraft.example.com
2. Add example.com to the server list

Observed Results:
When example.com is pinged, the host name in the handshake packet will be example.com, but when joining example.com the host name is minecraft.example.com.

Expected Results:
The host name in both scenarios should have the same value preferably minecraft.example.com (the address pointed to), as the host name is normally used for vhosts, and a SRV RR is normally used as an indirection.

Attachments

Comments 4

I don't understand the problem here. SRV records do work for subdomains. I have used them myself many times in different versions of Minecraft and server querying worked normally. It is also used by a existing public servers. Are you sure this is a Minecraft issue rather than a misconfiguration of some kind?

I will be trying to make a test really quickly and I'll come back to you.

Definitively not a Minecraft issue. This is my configuration:

SVR  _minecraft._tcp.mc.[domain]    0 0 25585     cloud.[domain]
A      cloud.[domain]    [server_ip]

[media]

Make sure that you have set:

query.port=[server port goes here]

Maybe that's the problem you're having. Both query.port and server-port should be set to the same value.

Hi! To make your bug report as effective as possible, please include the following information to help us understand your problem:

Steps to Reproduce:
1. (Explain what needs to be done for the issue to happen)
2.
3.

Observed Results:
(Briefly describe what happens)

Expected Results:
(Briefly describe what should happen)

Please also attach any needed commands, add-ons/behavior packs, data packs, resource packs, screenshots, videos, or worlds needed to help reproduce this issue and update the affected version/s if this is still an issue in 1.21.4.

Refer to the Bug Tracker Guidelines for more information about how to write helpful bug reports. Bug reports with insufficient information may be closed as Incomplete.

This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

SRV records work, its about the host name in the handshake packet which is inconsistent, corrected it.

Valaphee

(Unassigned)

Plausible

Platform

Normal

Networking

DNS, SRV

1.21.3, 1.21.4

Retrieved