Minecraft DNS SRV record correct setup
The SRV record should be created for _minecraft._tcp.mine.rlnd.cz
, not _minecraft._tcp.rlnd.cz
.
More Info:
SRV records are not always directly under the domain name - _service._proto.domain.com
.
I think this may be a fairly common misconception with SRV, partly because the poster-child application for it, Exchange/Outlook, uses the domain portion of your email address and a lot of information online generally tells you that 'you need an SRV record for your domain'.
If you enter a.b.domain.com
into an SRV aware application, it will lookup the SRV record for _service._proto.a.b.domain.com
.
![Moshe Shmukler](https://i.stack.imgur.com/dBdMB.jpg?s=256&g=1)
Moshe Shmukler
Updated on September 18, 2022Comments
-
Moshe Shmukler almost 2 years
I am building
<datalist>
options as below:data.suggestions.forEach(function(element) { $('datalist').append(`<option value="${element['description'].split(' ')[0].replace(/<[^>]*>/g, '')}">${element['description']}</option>`); });
My
element['description']
has HTML tags, which I would like to preserve. However, the appended children have their HTML formatting stripped.Please advise.
-
USD Matt over 11 yearsAre your players entering 'rlnd.cz' as the server? If they are entering 'mine.rlnd.cz' then I expect the SRV record would need to be _minecraft._tcp.mine.rlnd.cz. (I'm assuming the minecraft client prefers SRV records over A if they are present)
-
MDMarra over 11 yearsI'm not sure why this question is beginning to collect close votes. Game servers are not automatically off-topic, especially something like this.
-
Mailo Světel over 11 years@USDMatt: Will give it try. Do i have to wait for it spreads across all DNS servers or i can try it right after the rule will be written?
-
Mailo Světel over 11 years@MDMarra: Where do you see the close votes?
-
MDMarra over 11 years@Mailo When you have a certain amount of reputation (3000 I think) you can see how many people have voted to close a question. It takes 5 and this question only has 1 right now, so I wouldn't worry about it. Sometimes when people see "game server" they immediately vote to close it, since this is a site for people that run systems professionally. You are a professional, right? wink wink
-
USD Matt over 11 yearsYou may find it doesn't work immediately if DNS resolvers used by you/players have cached the fact that the above SRV record didn't exist last time they looked it up. If a manual nslookup/dig works from your command line, then it should work in the client.
-
Mailo Světel over 11 years@USDMatt: It's working. Make it Answer a you'll get a candy ;)
-
Spence over 11 yearsI've never touched anything Minecraft-related but, zow, I'm surprised and pleased to learn that it uses SRV records! Maybe someday SRV records will actually become useful!
-
Jon Hanna over 10 years@EvanAnderson in a way it shouldn't be too surprising: Having support for SRV spread to all Minecraft clients required a change to one application. Meanwhile, having several servers on different ports on the same IP was common, so there was an immediate benefit. Compare with the idea of using SRV for HTTP; the number of clients that would have to change, and the small immediate benefit. The benefits of open protocols are great, but this is one case where there being only one implementation has the advantage.
-
BASEER HAIDER JAFRI over 6 yearsPlease Clarify your requirements and code
-
charlietfl over 6 years
<option>
tag only accepts text. Use a dropdown type script instead if you need formatting. Or add a data attribute to reference back to the original array if that's what you need -
Moshe Shmukler over 6 yearsDo you know any components that I could use?
-
-
Jon Hanna over 10 yearsWell, that confirms that I'd done the right thing, so my problem is elsewhere, but at least you've narrowed down my problem space.
-
Moshe Shmukler over 6 yearsThis is not how you use variables with backquotes, but if your syntax would have been correct, how is this relevant?
-
Moshe Shmukler over 6 yearsyou think that you did. :)
-
tiborK over 6 yearsI'm trying to help you here not argue.