Valkyrie Hosting is now part of Vluxon Inc.One team, one expanded platform and a broader hosting ecosystem built to deliver more for every customer.

Back to FiveM
FiveM

FiveM Custom Domain Setup Guide - Replace IP with URLs

Set up FiveM custom domains for professional branding & better user experience. Replace IP connections with memorable URLs like play.yourdomain.com using DNS configuration.

2 min read

FiveM Custom Domain Setup

Custom domains allow players to connect to FiveM servers using memorable URLs instead of IP addresses and ports. This configuration replaces direct IP connections (e.g., 123.45.67.89:30120) with branded domain names (e.g., play.yourdomain.com).

Benefits

Feature Description
Professional branding Clean, memorable connection URLs for communities
DNS management Centralized record management through Cloudflare dashboard
Advanced service preparation Foundation for DDoS protection and reverse proxy services
User experience Simplified connection process for players

DNS Configuration

Step 1: Configure A Record

  1. Access the DNS section of your domain registrar or Cloudflare dashboard
  2. Create a new A Record with these specifications:
Field Value
Type A
Name play (or preferred subdomain)
IPv4 Address Your server IP address
Proxy Status DNS Only (disabled proxying)

Note: Disabling proxy status exposes your server IP but allows proper FiveM connections.

  1. Save the record

Step 2: Configure SRV Record

The SRV record enables connections without specifying port numbers.

  1. Create a new SRV Record with these parameters:
Field Value
Type SRV
Name play.yourdomain.com
Service _cfx
Protocol UDP
TTL Auto
Priority 10
Weight 10
Port 30120 (or custom port)
Target play.yourdomain.com
  1. Save the record

Connection Testing

After configuring both DNS records:

  1. Allow 2-4 hours for DNS propagation
  2. Players can connect using the custom domain (e.g., play.yourdomain.com)
  3. Verify connectivity from multiple locations to confirm global propagation

Technical Specifications

Connection Type Format Example
Direct IP IP:PORT 123.45.67.89:30120
Custom Domain subdomain.domain.com play.yourdomain.com

Related Articles

Ready to host your FiveM server? View Vluxon FiveM VPS plans with dedicated IP addresses and professional infrastructure.