Try this tutorial and see if it works for you. You need to be able to directly edit your DNS records for your domain. I had it working mostly, it would allow connection but it had to be done manually, the connection through the FiveM server list was to the raw IP or however it is done normally.