ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
646 stars 74 forks source link

[REQUEST] SRV DNS records support. #2226

Open Obbi89 opened 7 years ago

Obbi89 commented 7 years ago

Since Halflife, Source-1 and Source-2 (when it arrives) are different engines I think this should be referenced here, too.

DNS Service records are used in a variety of Applications and allow hoster, clients and users to easily access different servers hosted on the same machine or implement some form of load balancing etc.

For a full request see: https://github.com/ValveSoftware/halflife/issues/193

Since #1566 is closed it shouldn't be a problem in the server list to resolve those servers when these records change.

kthxbye.

kisak-valve commented 7 years ago

Hello @Obbi89, you misread something as #1566 is open. This is indicated directly below the title at the top of the issue report.

Closing as a duplicate.

Obbi89 commented 7 years ago

@kisak-valve Well this is not a duplicate. I'm talking about service records though — see the related issue in hl1 engine.

1566 is only semi-related to this as an optional extension allowing SRV records to be re-queried to update server stats/info on changes.

Just as a reminder, this is a SRV record:

_ts3._udp.server.tld. IN SRV 10 5 9987 server.tld. with: server.tld IN A 127.0.0.1

would cause someone that connects to server.tld with service ts3 using protocol udp on port 9987 using 127.0.0.1.

For source based games this could be used, to allow domain names and subdomains to connect to servers running on the same ip/host without ever specifying a port. That's just increased usability. It would additionally allow a hoster to run rcon on a different port if that would ever be useful — assuming the game supports it.

I think the approach to use the mod/gamename as service name is a good approach like: hl2 -game NAME would then use _name._udp with NAME truncated to 15 chars.

Normally one would register a service at IANA, but that's overkill I guess. https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml

What is important is the format that is specified in rfc 6335: https://tools.ietf.org/html/rfc6335#section-5.1

unplugged216 commented 6 years ago

Is there progress here? Seems to be an important issue that is being ignored. For years...

Fedcomp commented 5 years ago

Many dedicated servers are working on game hosting infrastructure, where servers have a lot ugly non-default ports and attached ip. Srv record would allow to have nice domain as well as keeping your players when you migrate to another host. Many game server owners are stuck where they are because players added them to favorites using ip. For example minecraft servers allows dns in favorites.

But i dont think it will ever be implemented (sigh)