Portless Minecraft IP with Cloudflare: Configuring DNS A & SRV Records
Complete guide to configuring DNS A and SRV records on Cloudflare so players can join using clean domains.
In brief
- An A record resolves the IP, and an SRV record automatically resolves the port.
- You must set the A record to 'DNS Only' (Grey Cloud).
- The SRV record points to the A record name and the port shown in your panel.
What you need
- A domain moved to Cloudflare (nameserver change already completed)
- Your server's IP address and port
- 5-30 minutes of patience for DNS propagation
On this page
Minecraft & Game Servers guides
If your Minecraft server runs on a non-default port (e.g. 25577 instead of 25565), players have to append ':port' to your IP. An SRV record instructs the game client to automatically resolve the port via DNS.
Cloudflare SRV Resolution & Packet Routing Pipeline
Step-by-step resolution path from clean vanity domain to backend gaming socket.
Vanity Domain
Player inputs oyna.sunucum.com and hits connect.
Cloudflare SRV Lookup
Client queries SRV record and retrieves targeted port 25577.
A Record Lookup
Unproxied A-record resolves directly to Clodo host IP.
Clodo DDoS Shield
L4 mitigation filters authenticate incoming gaming traffic.
Game Server Socket
Player joins seamlessly with zero port requirements.
1. The Two Required DNS Records#
You need two records in your Cloudflare DNS table: an 'A' record pointing to your server IP, and an 'SRV' record pointing to your game port.
1. A Kaydı:
Tür: A
Ad: baglanti (veya sunucu)
IPv4: 13.143.223.63
Proxy Durumu: DNS Only (Gri Bulut) ⚠️
2. SRV Kaydı:
Tür: SRV
Ad: oyna
Hizmet: _minecraft
Protokol: _tcp
Öncelik (Priority): 0
Ağırlık (Weight): 5
Port: 25577
Hedef (Target): baglanti.alanadiniz.com2. Domain Setup Methods Compared#
How to Implement This?
Clodo Cloudflare Integration (Web Only)
Cloudflare OAuth IntegrationThe Cloudflare OAuth connection in the Clodo panel is only available for web services (WordPress, static sites, etc.) and creates a proxied CNAME record. For game servers, you must manually add the SRV record via Cloudflare.
Step-by-step Execution:
- 1For web services, you can securely connect your Cloudflare account via OAuth from the Clodo panel.
- 2A proxied CNAME record is automatically created for your web services.
- 3For your Minecraft server, you must manually add the required SRV records directly in your Cloudflare dashboard.
Frequently Asked Questions
What happens if I enable the Cloudflare proxy (orange cloud) on the A record?
Cloudflare's standard free proxy only handles HTTP and HTTPS traffic. Because it does not pass Minecraft TCP packets, players will not be able to connect.
Can players connect immediately after adding the DNS records?
Global DNS propagation can take a while after a change. During this window, some players may connect immediately while others experience a delay.
Is an SRV record required if my server uses the default 25565 port?
If your server runs on default port 25565, an A record alone is sufficient. An SRV record is required when running on a non-default port to avoid typing the port number.
Was this guide helpful?
Feedback goes straight to the team that maintains this guide.
Could not find a solution?
You can open a request with our support team from the panel.

