Rust Wiki

Revision Difference

dns-records#562633

<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 (`server.queryport`) 2. ["SRV" record](https://en.wikipedia.org/wiki/SRV_record) pointing to your "A" record with your server's game port (`server.port`) <note> SRV records must: * be setup as `_rust` service and `_udp` protocol * not have multiple entries for the same server </note> ##Dashboard Examples using the DNS hostname `EUL1.playrust.com` ###CloudFlare <upload src="27/8dc53528aad57a5.png" size="10008" name="image.png" /> <upload src="27/8dc53529c593e6e.png" size="15757" name="image.png" /> CloudFlare has the service, protocol, and name all in the name box. ###GoDaddy <upload src="5f2cb/8dc5710a0813f51.png" size="7621" name="GoDaddy A Record Example.png" /> <upload src="5f2cb/8dc5710a530b9c4.png" size="12858" name="GoDaddy SRV Record Example.png" /> GoDaddy has separate boxes for the service, protocol, and name. # 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. <note>`server.favoritesEndpoint` should be set to your "A" record, so it should not have "_rust._udp" in it.</note>