Use case: Hosting multiple minecraft servers on one Server with the same IP.

Therefore you can use SRV-records:

Add a DNS record with the following scheme to at your DNS: TTL class SRV priority weight port target

For example this can look like this:

_minecraft._tcp.sub1. 86400 IN SRV 0 5 5060
The service for which you are trying to set up this type of DNS records must support those! (for example Minecraft does)

Some other examples from stackoverflow: 86400 IN SRV 10 40 25565 86400 IN SRV 10 30 25566 86400 IN SRV 10 30 25567

Sourced partially from - Redirect DNS to different ports

  • tutorials/redirect-subdomains-to-different-ports-via-dns.txt
  • Last modified: 2024/02/10 11:07
  • by Zyzonix