Revision Difference
dns-records#561757
<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`.⤶
⤶
<note>⤶
SRV records must:⤶
* be setup as `_rust` service and `_udp` protocol⤶
* not have multiple entries for the same server⤶
* have the port set to your server's query port (`server.queryport`)⤶
</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" />
⤶
These screenshots above are of CloudFlare's DNS dashboard, so it may look a bit different for you if your DNS is managed somewhere else. The fields should still be similar though. As another example, here are the records as seen in the GoDaddy DNS Management page:⤶
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" />
⤶
⤶
<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>⤶
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>