halflife icon indicating copy to clipboard operation
halflife copied to clipboard

[REQUEST] SRV DNS records support.

Open JabLuszko opened this issue 11 years ago • 28 comments

I guess it was mentioned few times on mailling list already, but hey, this is the new tracker :-)

It would be nice if Steam would support SRV records. It already supports A records, so I guess it shouldn't be hard.

Pros:

  • transparent for end-user. They add to favourites/connect to same canonical name every time. They don't care if server moved to other GSP, changed port.
  • easier to remember address - we both know that "official.valve.com" is much easier than 178.27.237.27:27604
  • I guess Valve could use it for some kind of load-balancing between theirs servers.

Cons:

  • more DNS request.

[1] http://tools.ietf.org/html/rfc2782 [2] http://en.wikipedia.org/wiki/SRV_record

JabLuszko avatar Feb 16 '13 13:02 JabLuszko

How do you deal with the fact that you can have multiple SRV records for a given host, priorities and weight? You could have for example:

_tf2._udp.somehost.org 10 10 27015 tf2-1.somehost.org _tf2._udp.somehost.org 10 20 27015 tf2-2.somehost.org _tf2._udp.somehost.org 20 10 27015 tf2-3.somehost.org _tf2._udp.somehost.org 30 10 27015 tf2-4.somehost.org _tf2._udp.somehost.org 40 10 27025 tf2-4.somehost.org

Now let's say there are two players who both want to play on somehost.org's servers together. They both enter "somehost.org" into the box, and... what then?

yaakov-h avatar Feb 16 '13 15:02 yaakov-h

That (and what will happend if there are two diffrent 'games' on one record - how the Steam (not in-game) Server browser should act) is the thing to discuss ;-)

I guess we should stick to priorites anyway and go from top to bottom if there is more records. Most of the setups will not contain more than one server and still you can invite people from Steam (which will report current IP adress) ;-).

JabLuszko avatar Feb 16 '13 15:02 JabLuszko

I think this can be done. Look at TeamSpeak3 DNS tool.

This tool allows you to define A records on specific ports. EX:

s1.counterstrike.com=12.13.14.15:27015 s2.counterstrike.com=12.13.14.15:27016 s3.somedomain.com=12.13.14.15:27017

And so on...

What this shoul do ? Well.. when you type in console "connect s2.counterstrike.com" the "HLDS_DNS" (let's call it that way :D ) will know you wan to join the servername called s2.counterstrike.com and he will redirect you right to the specific server port.

This will be a great tool for those one that are hosting multiple cs servers on same ip and not only.

ghost avatar Jan 02 '14 17:01 ghost

Any progress on this? I don't think we will ever get this! :(

ztjuh avatar Mar 11 '17 17:03 ztjuh

This is actually a really good suggestion. I know, I am literally years behind lol.

The current workaround is to use iptables in linux. SRV records would be by far more stable and appropriate. I mean SRV records exist for a reason...

In response to @yaakov-h : SRV records really dont work that way. I mean they do... However, they are intended to direct traffice for a service to the right host and port. So, multiple entries for the same result host, protocol, and port would be pointless. If you chose to load balance, pick a game that supports load balancing like Minecraft with BungeeCord?

SRV Record Format _service._tcp.my.server.net. TTL IN SRV P W PORT final.host.net.

Proposed SRV Record format for Valve _hl2-[gameid]._tcp.my.server.net. 3600 IN SRV 0 5 27015 my.server.net.

This is a necessary for providers. Enthusiasts would benefit as well.

unplugged216 avatar Nov 06 '18 16:11 unplugged216

This is actually a really good suggestion. I know, I am literally years behind lol.

The current workaround is to use iptables in linux. SRV records would be by far more stable and appropriate. I mean SRV records exist for a reason...

In response to @yaakov-h : SRV records really dont work that way. I mean they do... However, they are intended to direct traffice for a service to the right host and port. So, multiple entries for the same result host, protocol, and port would be pointless. If you chose to load balance, pick a game that supports load balancing like Minecraft with BungeeCord?

SRV Record Format _service._tcp.my.server.net. TTL IN SRV P W PORT final.host.net.

Proposed SRV Record format for Valve _hl2-[gameid]._tcp.my.server.net. 3600 IN SRV 0 5 27015 my.server.net.

This is a necessary for providers. Enthusiasts would benefit as well.

How I can make a SRV record for garrysmod? Will this work?

RoofLee avatar Jun 01 '19 11:06 RoofLee

Any updates on this ?

nikrozman21 avatar Jun 09 '19 14:06 nikrozman21

We need this, this would be so handy to protect your server with cloudflare to prevent DDoS attacks or to hide your IP if you wouldn't want that public. Just saying... :^)

realsnowy avatar Jun 30 '19 17:06 realsnowy

In reply to realsnowy you can't really hide your IP with SRV records. They still have to be pointing to an "open" subdomain. You can't utilize Cloudflare for that task cause they don't proxy on any other ports than just 80 and 443 as far as I'm aware.

nikrozman21 avatar Jun 30 '19 21:06 nikrozman21

I can still put my Minecraft server behind cloudflare and it works. You have to make a proxied A record and make the SRV record point to that proxied domain.

realsnowy avatar Jul 10 '19 08:07 realsnowy

any update ?

burakataoglu avatar Aug 04 '19 14:08 burakataoglu

@mikela-valve Is this possible in a future update?

oaus avatar Aug 04 '19 16:08 oaus

@zharding I agree. Do you have any idea on how to configure the iptables as this issue is still not fixed.. Would really appreciate the help!

mdammers avatar Oct 22 '19 15:10 mdammers

It's not nice idea, better to use

steam server's api,

which allow update ip's just by server id and owner account.

Domain control can be taken by intruders.

So, we should just resolve server ip on server adding step, and save it as plain ipv4.

afwn90cj93201nixr2e1re avatar Nov 06 '19 07:11 afwn90cj93201nixr2e1re

I'm shocked that this is still not supported.

mygrexit avatar Apr 02 '20 21:04 mygrexit

I am too.

jsebean avatar Apr 06 '20 01:04 jsebean

I would really like this feature. I've been working on a tunneling service for games and this would allow me to provide a much better experience for my users.

loriopatrick avatar Apr 15 '20 19:04 loriopatrick

i thought Valve response to this is.... go play fortnite fuckers...

fabiocasolari avatar Feb 11 '21 00:02 fabiocasolari

Anything new?

kubo6472 avatar May 29 '21 20:05 kubo6472

any progress?

Be1zebub avatar Nov 09 '21 20:11 Be1zebub

probably not

kubo6472 avatar Nov 09 '21 23:11 kubo6472

valve, please

datemike972 avatar Nov 16 '21 07:11 datemike972

This is actually a really good suggestion. I know, I am literally years behind lol.

The current workaround is to use iptables in linux. SRV records would be by far more stable and appropriate. I mean SRV records exist for a reason...

In response to @yaakov-h : SRV records really dont work that way. I mean they do... However, they are intended to direct traffice for a service to the right host and port. So, multiple entries for the same result host, protocol, and port would be pointless. If you chose to load balance, pick a game that supports load balancing like Minecraft with BungeeCord?

SRV Record Format _service._tcp.my.server.net. TTL IN SRV P W PORT final.host.net.

Proposed SRV Record format for Valve _hl2-[gameid]._tcp.my.server.net. 3600 IN SRV 0 5 27015 my.server.net.

This is a necessary for providers. Enthusiasts would benefit as well.

iptables? please tell me how 🙏

Be1zebub avatar Nov 16 '21 18:11 Be1zebub

Please can we have this

2004seraph avatar Jun 09 '22 21:06 2004seraph

bump please this would make our lives so much easier when using services like dathost, which so many services do.

sphaxa avatar Nov 19 '23 17:11 sphaxa

Too hard for Valve 😂

On Sun, Nov 19, 2023 at 6:02 PM Zach Skaistis @.***> wrote:

bump please this would make our lives so much easier when using services like dathost, which so many services do.

— Reply to this email directly, view it on GitHub https://github.com/ValveSoftware/halflife/issues/193#issuecomment-1817916823, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB575Y6V73XNSRUXUTLEZ6TYFI3SZAVCNFSM4ADPQKLKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBRG44TCNRYGIZQ . You are receiving this because you commented.Message ID: @.***>

ztjuh avatar Nov 19 '23 23:11 ztjuh

This issue is now 11 years old 😭

EzioTheDeadPoet avatar Mar 01 '24 00:03 EzioTheDeadPoet

would they accept a pr to add it 😭

2lag avatar Apr 09 '24 01:04 2lag