[MC-6941] SRV is no longer used to lookup servers Created: 10/Jan/13  Updated: 03/May/15  Resolved: 31/Jan/13

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Snapshot 13w02a, Snapshot 13w02b, Snapshot 13w03a, Snapshot 13w04a
Fix Version/s: Snapshot 13w05a

Type: Bug
Reporter: Nuxas Assignee: [Mojang] Nathan Adams
Resolution: Fixed Votes: 2
Labels: None

Issue Links:
Duplicate
is duplicated by MC-7641 SRV lookup failed Resolved
is duplicated by MC-7662 Cannot connect through IPs Resolved
Relates
relates to MC-14516 Minecraft client does not query DNS r... Resolved
Confirmation Status: Unconfirmed

 Description   

The client is not using the SRV record to lookup the server it connects to.

Both the ping in the multiplayer menu and the direct connect fail.

I sniffed the DNS packets and found that only A and AAAA queries were made.



 Comments   
Comment by deleted [ 16/Nov/14 ]

Above comment from me is probably MC-31433

Comment by deleted [ 16/Nov/14 ]

Can we please reopen this? I sniffed all DNS queries made from start to stop of Minecraft:

$ sudo tcpdump -vvv -s 0 -l -n port 53`

Not a single SRV query was made, A queries only, even after the A queries returned NXDOMAIN.

Java version:

$ java -version
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-466.1, mixed mode)
Comment by Michal Manowski [ 26/May/13 ]

Please fix this...in 1.4 update info, it says it should work....but it doesn't

Comment by root [ 23/Apr/13 ]

The issue is not fixed at all. The (vanilla) Minecraft client does not query the DNS recursor for SRV records.
A look at the DNS queries (using Wireshark) shows that the current Minecraft client only queries for AAAA- and A-records but not for SRV-records.

Mojang, please fix it finally!

Technical details:

Minecraft version: 1.5.1
Oracle JRE version: 1.7.0_21 (x64)
Operating system: Ubuntu 10.04 x64

$ dig +short SRV _minecraft._tcp.whatevercraft.com
0 5 25565 server.whatevercraft.com.
$ dig +short A server.whatevercraft.com
46.228.200.240

Comment by Jon Atkins [ 28/Jan/13 ]

SRV lookups are failing for me. I'm running on Windows 7 64 bit with the standard Oracle (who bought Sun?) Java installation.

Versions installed are (from control panel, add/remove programs):

Java 7 Update 7 (64 bit) - version 7.0.70
Java 7 update 11 - version 7.0.110
Java SE Development Kit 7 Update 7 (64-bit) - ver 1.7.0.70

From the Minecraft snooper settings page, the java_version value is 1.7.0_07

Comment by [Mojang] Grum (Erik Broes) [ 28/Jan/13 ]

The SVR lookup was done using sun.* classes and would give huge timeouts for people who didn't use the Sun JRE. Now we check for the existance of the class used before we do the SVR lookup to prevent that. From this I can only assume you do not have that class and thus are not using Sun's JRE.

If you stumble upon a better way to do the SVR lookups feel free to let us know.

Comment by Nuxas [ 28/Jan/13 ]

@Tails if you can confirm this please change confirmation status

Generated at Sun Jan 12 12:12:52 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.