Rust Wiki

Revision Difference

dns-records#561627

<cat>Play.Hosting</cat>⤶ <title>Server DNS Records</title>⤶ ⤶ # Server DNS Records⤶ ⤶ Rust supports connecting to servers through DNS records if you add the right records for them. To properly configure your Rust server to allow connections using a DNS hostname you will need to create two records.⤶ ⤶ 1. "A" record pointing to your Rust server's IPv4 address⤶ 2. ["SRV" record](https://en.wikipedia.org/wiki/SRV_record) pointing to your "A" record with your server's **query port**⤶ ⤶ Here is an example of what the records might look like when you configure a server using the DNS hostname `EUL1.playrust.com`.⤶ <upload src="27/8dc53528aad57a5.png" size="10008" name="image.png" />⤶ <upload src="27/8dc53529c593e6e.png" size="15757" name="image.png" />⤶ These screenshots are of CloudFlare's DNS dashboard so it may look a bit different for you if your DNS is managed somewhere else. The field should still be the same though.⤶ ⤶ <note>⤶ SRV records must:⤶ * have a name that begins with "_rust._udp."⤶ * not have multiple entries for the same server⤶ * have the port set to your server's query port (`server.queryport`)⤶ </note>⤶ ⤶ # Favorites List⤶ ⤶ If you have configured a DNS hostname for your Rust server then you can take advantage of enhanced favoriting for your server. Simply set the `server.favoritesEndpoint` convar to your Rust server's domain name and then any players who favorite your server would automatically use the domain name to find the server again in the future. This allows your server to go through IP and port changes without players losing it on their favorites list.