Setting up a SRV Record

  • Views Views: 649
  • 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

    Suppose that we already have our domain 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 resolves to the set ip adress.
    However, users will still have to type 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: 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

    In full: 30 0 5 25565

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