Setting up a SRV Record

  • Views Views: 469
  • Last updated Last updated:
  • Minecraft Middle Earth is a Minecraft community that recreates the world described by JRR Tolkien and his writings. Everyone can participate in organized events in which we collaborate to create major landmarks, terrain, caves, castles, towns, farms and more.

    To get started, visit The New Player Guide
  • In order to ease the user experience, one can setup an SRV record for Minecraft. For example, the build server is running on an ip adress and listens to a specified port. Instead of having the user type in the ip and port, we can instead use something that is easier to remember, and easier to use.

    Finding the ip is the first step. The Build server is running on 5.9.85.67:25565

    Suppose that we already have our domain mcmiddleearth.com set up at the registrar.
    We can replace the ip adress by setting an A Record, which we can define a domainname to resolve to.
    In the Host field you can type the subdomain you want to use, in this case build and at the value you can type the ip adress of the server that hosts.

    Basically we are now telling the DNS that the domain build.mcmiddleearth.com resolves to the set ip adress.
    However, users will still have to type build.mcmiddleearth.com:25565 because it requires a post. This is where SRV Record comes in!

    An SRV record requires an already preset A record, this is important to know.
    An SRV record could look like this:

    _minecraft._tcp.name TTL priority weight port target

    The _minecraft part tells the name of the service, you may not change this or Minecraft will not resolve the SRV properly. What follows is the .tcp which basically tells the protocol to use. Then it is followed by .name this should be the subdomain you use. TTL or time-to-live is the cache setting for your DNS, you can leave this at default. Priority only matters in case you run multiple services under the same SRV, lower value is higher priority. Weight changes the order if you have multiple SRV's that run on the same priority. Port in our case is the 25565 port. Target will be build.mcmiddleearth.com

    In full: _minecraft._tcp.build 30 0 5 25565 build.mcmiddleearth.com

    And then you can log in without all that technical stuff with just build.mcmiddleearth.com as ip! :)