This guide will help you set up SRV records for your Rust server. Follow the instructions carefully to ensure your server is correctly configured and added to favorites. For this, we will assume your IP is 169.254.60.1.
Steps
-
Create an A record:
Example:
server1.myrustserver.compointing to169.254.60.1 -
Create an SRV record:
Name:
_rust._udp.server1.myrustserver.comTarget:
server1.myrustserver.comPort:
28025Weight:
1(adjust if required) -
Set the server favorites endpoint convar:
Command:
server.favoritesEndpoint server1.myrustserver.com
Note: If your server IP or query port changes, update the IP address in the A record, and update the SRV port to your new query port if applicable.
Client Configuration
Client favorites are saved locally in cfg/favorites.cfg.
Incorrectly setting _rust._udp.server1.myrustserver.com will cause it to save to the client's config but not resolve correctly, preventing your server from being favorited.