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:

  1. Go to Cloudflare’s website and log in or sign up.
  2. Click Add Site and enter your domain name.
  3. Choose the Free plan and proceed.
  4. Review and confirm your DNS records as shown by Cloudflare.
  5. Update your domain’s nameservers to the Cloudflare nameservers provided (this will be done in your domain registrar’s settings).
  6. Wait for DNS propagation, which may take a few hours.

Step 3: Access the Cloudflare DNS Editor

  1. Go to Cloudflare's website and log in.
  2. From the dashboard, select DNS at the top of the page to open the DNS settings.

Step 4: Add an A Record

  1. 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).
  2. 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.

  1. 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.
  2. Name: Use the same subdomain you specified earlier (e.g., play or mc), or use @ for the root domain.
  3. Protocol: Set to _tcp (If you use a subdomain like play, make it _tcp.play)
  4. Service: Set to _minecraft 
  5. Priority: Set to 5.
  6. 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!

Ha estat útil la resposta? 0 Els usuaris han Trobat Això Útil (0 Vots)

Powered by WHMCompleteSolution