Point a domain at your Minecraft server with SRV records

Let players join play.<your-domain> without typing a port: the _minecraft._tcp SRV record, A vs CNAME vs SRV, Cloudflare DNS-only, and dig/nslookup tests.

Omne Team5 min read

Quick answer To let Java Edition players join play.<your-domain> without typing a port, add an A (or AAAA) record for the host that runs the server, plus an SRV record named _minecraft._tcp.play.<your-domain> whose target is that hostname (RFC 2782 says the target must have address records and must not be an alias, so point it at the A record, not a CNAME) and whose port is your server’s port. The Minecraft Wiki says Java Edition has supported SRV lookup since 1.3.1, with the service name “minecraft” [1]. If you use Cloudflare, an SRV record cannot be proxied (only A, AAAA and CNAME can be [3]); my reading, not a Cloudflare statement about Minecraft, is that the A record should also stay DNS-only for game traffic. Bedrock: the wiki says Bedrock Dedicated Server does not support SRV [4].

Everything here is from the pages in the sources list, read on 2026-09-25. Live pages change, so check them before you rely on a detail.

What the SRV record does

The Minecraft Wiki’s 1.3.1 changelog says “Added SRV Record Lookup support”, that different subdomains of one domain can handle different servers via different port numbers, and that the service name should be “minecraft”, i.e. _minecraft._tcp.example.com [1].

The record layout comes from RFC 2782, which defines the name form as _Service._Proto.Name TTL Class SRV Priority Weight Port Target [5]. Applied to Minecraft that is service _minecraft, protocol _tcp, then your domain name. The RFC defines the Port field as the port on the target host, and Target as the domain name of the target host [5]. Cloudflare’s SRV example uses the same field names: priority, weight, port and target [2].

The wiki’s Server List Ping page adds that an SRV record is “a complete redirect”: if _minecraft._tcp.example.com points to mc.example.org, users connecting to example.com will provide mc.example.org as the server address in addition to connecting to it [6]. Practically, the hostname the client ends up using is the SRV target, not the name the player typed.

A, CNAME and SRV are different jobs

  • A / AAAA: per Cloudflare, these map a domain name to one or more IPv4 or IPv6 addresses [2].
  • CNAME: maps a domain name to another (canonical) domain name [2]. Cloudflare’s description of it mentions no port.
  • SRV: per Cloudflare, “specifies a host and port for specific services” [2]. This is the only one of the three that carries a port.

An A record has no port field, so it cannot by itself tell a client to use a non-default port; that is the SRV record’s job (my inference from the field lists above). RFC 2782 says the SRV target must have one or more address records and “MUST NOT be an alias” [5], so point the target at a name that has an A or AAAA record, not at a CNAME.

Priority and weight

RFC 2782 says a client must try the lowest-numbered priority first, and targets with the same priority are chosen by weight, with larger weights getting proportionately higher probability [5]. I did not find the Minecraft Wiki documenting how the Java client uses priority and weight, so for a single server treat them as required fields. The example below uses priority 0 (an arbitrary choice, not sourced) and weight 0, which RFC 2782 says administrators should use when there is no server selection to do [5]. Using multiple SRV targets for Minecraft is not verified here.

The default port

server-port in server.properties is 25565 by default per the wiki’s server.properties page [7], and the Server List Ping page’s handshake description says “Default is 25565” for the port field [6]. I did not find a wiki sentence spelling out the resolution order (SRV first, then default port), so read that as “25565 is the default”, not as a documented lookup algorithm. If you run on a non-default port, set it in server.properties (see server.properties explained) and use the same number in the SRV record. If the server will not start on that port, see Minecraft server failed to bind to port.

Example records

Placeholders below, not real values. Replace <your-domain>, <server-ip> and <server-port>.

; A record: where the server lives
play.<your-domain>.           A     <server-ip>

; SRV record: tells Java clients the port
_minecraft._tcp.play.<your-domain>.  SRV  0 0 <server-port> play.<your-domain>.
;                                         ^prio ^weight ^port  ^target

Players then type play.<your-domain> in the Java Edition server address field.

Cloudflare: keep these DNS-only

Cloudflare’s docs state that the proxy status controls whether HTTP/HTTPS traffic for a record goes through Cloudflare, and that “Only records used for IP address resolution (A, AAAA, and CNAME records) can be proxied. Other record types (such as MX or TXT) are always DNS-only” [3]. The page also says records should be DNS-only when the service is not compatible with Cloudflare’s HTTP proxy, and lists “non-HTTP services” among the common examples [3]. Cloudflare’s SRV API example shows "proxied": false [2].

The SRV record itself cannot be proxied. For the A record it points to, my inference (the page does not name Minecraft) is to set it to DNS-only (grey cloud), because the page says proxy status covers HTTP/HTTPS traffic and lists “non-HTTP services” as not compatible with Cloudflare’s HTTP proxy; Minecraft Java is not HTTP. A DNS-only record returns your server’s actual IP address [3], so anyone who queries the name sees it.

Propagation and TTL

TTL controls how long each record is cached and so how long it takes for updates to reach users; longer TTLs speed up lookups but slow updates [8]. Cloudflare’s TTL page says a proxied record’s TTL is Auto, set to 300 seconds, while for DNS-only records you can choose your own [8]. I did not read a general “propagation takes X hours” figure from a primary source, so I am not giving one.

Test it with dig and nslookup

dig takes a query type with -t, and the default type is A [9]. Microsoft documents nslookup -type=<resourcerecordtype> with -type=AAAA as its example [10]; the SRV form below is my substitution of the record type, not a documented example.

dig -t SRV _minecraft._tcp.play.<your-domain>
dig -t A play.<your-domain>

nslookup -type=SRV _minecraft._tcp.play.<your-domain>

The answer section should list your priority, weight, port and target. If it is empty, the record name is probably wrong (check the _minecraft._tcp. prefix and the subdomain).

What this doesn’t cover

  • Bedrock. The Minecraft Wiki’s Bedrock Dedicated Server page lists lack of SRV support as a limitation [4]. That is a single wiki statement I did not test, and it covers BDS only. I did not verify client behavior or other Bedrock hosting setups.
  • Client resolution details. Exact behavior with multiple SRV records, or when the target is unreachable, is not documented on the pages I read.
  • Providers other than Cloudflare. Field names in your DNS panel will differ. Cloudflare’s SRV fields (name, priority, weight, port, target) are what I read [2].
  • Firewalls and hosting panels. The port must be open and forwarded to the server; not covered here.
  • Live changes. Wiki and Cloudflare pages change; this reflects them as of 2026-09-25.

Questions people ask

Does Bedrock Edition support SRV records?

The Minecraft Wiki lists it as a limitation of Bedrock Dedicated Server: it does not support SRV records for a domain name [4]. That is one wiki page, read 2026-09-25, and I did not test it. Check the live page.

Can I proxy the SRV record through Cloudflare's orange cloud?

No. Cloudflare says only A, AAAA and CNAME records can be proxied and other types are always DNS-only [3]. Its API example for an SRV record shows proxied as false [2].

Why does my new record not show up yet?

Resolvers cache records for the record's TTL, and Cloudflare notes a longer TTL means updates take longer to take effect [8]. Query the record with dig or nslookup to see what your resolver returns.

Sources

  1. Minecraft Wiki: Java Edition 1.3.1 (changelog, SRV lookup added)
  2. Cloudflare DNS docs: DNS record types
  3. Cloudflare DNS docs: Proxy status
  4. Minecraft Wiki: Bedrock Dedicated Server (Limitations)
  5. RFC 2782: A DNS RR for specifying the location of services (DNS SRV)
  6. Minecraft Wiki: Java Edition protocol/Server List Ping (Handshake fields)
  7. Minecraft Wiki: Server.properties
  8. Cloudflare DNS docs: Time to Live (TTL)
  9. dig(1) manual page (BIND 9), linux.die.net
  10. Microsoft Learn: nslookup