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:
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
A Record: server.example.com
AAAA Record: server.example.com
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.
That’s cool. I’ll do this
💚💛
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 💚💛💚💛💚
Happy to hear this will finally be implemented. Long wanted feature.
Thank you for this. Awesome addition.
YES!
Hopefully we see this implemented this coming force! I am excited to utilize this on my servers!
This was just released in our latest patch!
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.
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.
Thanks Lama 💚💛💚💛