SRV record = Service Record
Supposedly you have a FiveM game server and you want to use a example.com address, you can do this by means of an A record and an SRV record. But how is the structure of this and how do you set it up?
Note: It is not necessary to create an A record if you host the FiveM server on our FiveM server hosting.
In general, you can already create an A record for play.example.com via the DNS management of your provider to the ip address of your server. The SRV record can sometimes be different per provider, how it can be set.
The SRV record must contain the following elements:
For a FiveM play domain it will be something like this:
|_cfx._udp.play||10||10||The port of your FIveM server, the default FIveM server port is 30120||The target you want to connect to, it will define the IP of the server.
If you have set the play.example.com A record it is: play.example.com
If you are using the Jestax FiveM servers it is something like server1.example.com
We have listed some examples of setups on different dashboards and services.
Trough the Cloudflare domain Dashboard click on “DNS” to enter the DNS settings.
To let FiveM now what port and what connection protocol to follow we have to setup an SRV record.
Once you have set this, it will work after 2-4 hours and you can use your play.example.com address.