Sorry, we don't support your browser.  Install a modern browser
This post is closed.

Support to SRV Records#35356

Hey Facepunch Team,

How’s everything? I’ve just had an idea about Rust that could be really cool.

You know how some games let you connect to servers with those simple, memorable domain names, thanks to special DNS settings (SRV Records)? Imagine having this kind of easy access in Rust. It’s like giving players a VIP pass to their favorite servers. Here’s the lowdown:

  1. Player-Friendly: Ditch those complex IP addresses and ports. We’d have snappy, easy-to-recall domain names instead. Quick type, and you’re in action!
  2. Server Owner’s Paradise: It’s a big win for server owners too. Like putting up a giant, flashy billboard for your server. More flair, more control, more gamers dropping in.

Here is an example of a SRV record for a server running on port 54545 with the domain name server.example.com:

The SRV record for the Rust server would be:

  • SRV Record: _rust._udp.server.example.com

    • DOMAIN: _rust._udp.server.example.com.
    • TTL: 3600
    • CLASS: IN
    • TYPE: SRV
    • PRIORITY: 0
    • WEIGHT: 5
    • PORT: 54545
    • TARGET: server.example.com.
  • A Record: server.example.com

    • DOMAIN: server.example.com.
    • TTL: 3600
    • CLASS: IN
    • TYPE: A
    • IP: 123.123.123.123
  • AAAA Record: server.example.com

    • DOMAIN: server.example.com.
    • TTL: 3600
    • CLASS: IN
    • TYPE: AAAA
    • IP: 0123:4567:89ab:cdef:0123:4567:89ab:cdef

In this example, the Rust server is running on port 54545. The SRV record is used to tell clients where to connect to the server. The A and AAAA records are used to tell clients the IP address of the server to connect to. With this the client will be able to use only the domain name to connect to the server (connect server.example.com) and with the bonus of being able to use IPv6 if the Facepunch team ever decides to support it.

I atached a file with an example a piece of code that implements this, it’s not perfect but it works and im going to implement in the Carbon 4 Client project.

I really think this tweak could make a world of difference for us. It’s the little things that count, right?

Also, as we roll into 2024, just wanna throw out some good vibes your way. Hope this year will be full of excitement and fun on Rust.
Keep rocking, Facepunch.

4 months ago
4

That’s cool. I’ll do this

4 months ago
4
Changed the status to
Planned
4 months ago
7

💚💛

4 months ago
2

Thank you very much, this change will be very significant for the Brasa servers because here in Brazil we pay for DDoS protection by IP and we are already investing a lot to maintain this protection.
Brasa love to you 💚💛💚💛💚

4 months ago
3
S

Happy to hear this will finally be implemented. Long wanted feature.

3 months ago
2

Thank you for this. Awesome addition.

3 months ago
2
Merged SRV Records#27054
3 months ago
1
Changed the status to
In Progress
2 months ago
5

YES!

2 months ago
3

Hopefully we see this implemented this coming force! I am excited to utilize this on my servers!

2 months ago
2

This was just released in our latest patch!

25 days ago
3
Changed the status to
Completed
25 days ago
3

You’re amazing Lama <3 much love to you man, this helps a lot because here in Brazil we use the same ip for many servers, DDOS protection is paid by ip.

25 days ago
1

It’s working great! I run multiple servers on a self-hosted machine so this is super nice to have!

Also, thanks for updating the wiki! I suggest everyone check it out to make sure to set everything up correctly: https://wiki.facepunch.com/rust/dns-records

Fantastic adding the “server.favoritesEndpoint” convar too. This is huge too for any potential IP address changes the ISP could hand down to me.

25 days ago
1

Thanks Lama 💚💛💚💛

25 days ago