Minecraft - Two servers, two subdomains, two ports, don't want to type in :port to connect
Solution 1:
Luckily for you, Minecraft uses SRV records when looking up servers. This allows you to specify a port for each hostname. Simply create two different SRV records in your DNS zone with different hostnames and ports:
_minecraft._tcp.www.server1.example.com. <TTL> IN SRV <priority> <weight> 25565 actual-host-server.example.com.
_minecraft._tcp.www.server2.example.com. <TTL> IN SRV <priority> <weight> 25566 actual-host-server.example.com.
(Note: I haven't actually used SRV myself; this is based on another page on using SRV with Minecraft.)
Note that actual-host-server.example.com
must have an A
record; that is, it cannot be a CNAME
alias for another domain name.