Search code examples
subdomain

Is it possible to point a specific port from a domain name?


Basically what I want is this:

first.name.com:25565 -> 127.0.0.1:25562
second.name.com:25565 -> 127.0.0.1:25565

This is for some minecraft server's I'm hosting.


Solution

  • Ok, so here's what I ended up doing:

    mc.name.com is pointed at the server's hostname using a CNAME record

    The next record I added was an SRV record to make 25565 point at 25562 (or whatever port I need it to be)

    _minecraft._tcp.mc.muchieman.com SRV 900 0 5 25562 mc.muchieman.com.

    900 being TLS, 0 being priority, 5 being weight, 25562 being the port to point to