Connecting Your Server to a Domain via Cloudflare
Step 1: Obtain a Domain
To connect your server to a domain, you'll first need to purchase one. You can purchase a domain from us here, just enter the desired domainname, select the domain extension (.org, .net, .com, ...).
Step 2: Connect Your Domain to Cloudflare
If your domain is already registered with Cloudflare, proceed to the next step below. If you haven't, here's a guide on how to connect CloudFlare to your domain:
If you haven't already connected your domain to Cloudflare, do the following steps:
- Go to Cloudflare’s website and log in or sign up.
- Click Add Site and enter your domain name.
- Choose the Free plan and proceed.
- Review and confirm your DNS records as shown by Cloudflare.
- Update your domain’s nameservers to the Cloudflare nameservers provided (this will be done in your domain registrar’s settings).
- Wait for DNS propagation, which may take a few hours.
Step 3: Access the Cloudflare DNS Editor
- Go to Cloudflare's website and log in.
- From the dashboard, select DNS at the top of the page to open the DNS settings.
Step 4: Add an A Record
- Name/Subdomain/Host: Enter the subdomain you want, such as play or mc. Use @ if you want to connect the root domain directly (e.g., example.com).
- Value/IP Address/Points To: Enter your server’s IP address without the port number.
If your server has a dedicated IP (default port 25565), you can stop here, as no additional configuration is needed.
Step 5: Add an SRV Record (For Servers Without a Dedicated IP)
Note: Using SRV records is generally discouraged due to potential compatibility issues with some registrars. A dedicated IP ($4/month) is recommended.
- Target: Set this to your desired subdomain, including the main domain (e.g., play.example.com or mc.example.com). For the root domain, use example.com.
- Name: Use the same subdomain you specified earlier (e.g., play or mc), or use @ for the root domain.
- Protocol: Set to _tcp (If you use a subdomain like play, make it _tcp.play)
- Service: Set to _minecraft
- Priority: Set to 5.
- Weight: Set to 0.
Example SRV Record:
- Service: _minecraft
- Protocol: _tcp.play (or your chosen subdomain)
- Name: play (or your chosen subdomain)
- Priority: 5
- Weight: 0
- Target: play.example.com (or example.com for the root domain)
Note: DNS changes can take up to 48 hours to propagate for existing records, but new records usually appear instantly.
Your Litebyte server is now connected to your Cloudflare-managed domain!