Skip to content

[feature request] (client) SRV record for webconsole server #165

Description

@Jolexer

Please add the ability to use an SRV record for a server to automatically select a port.

The default port for the webconsole is 8080. When port forwading, multiple services may want this port, so it's not always available.
For the ease of administratively specifiying the port and host a service should use, we use an SRV record.
Currently, you only specify a FQDN for the IP address to use, and hardcode the port seperately.
I would like to be able to input the same FQDN I use to join minecraft into the server field, even if that FQDN is also a web server and my minecraft server is running behind a proxy (and the minecraft SRV record does thus not equal the webconsole IP)

Expected behavior:

  • When entering a FQDN, automatically send an SRV DNS request for _webconsole._minecraft._tcp.{$FQDN}. If it succeeds, replace the port with the value SRV and save it as such (still allowing the user to specify a port themselves and/or not use SRV).
  • When connecting to a server that has SRV as the port, resolve _webconsole._minecraft._tcp.{$FQDN} as SRV, and then resolve the resulting FQDN and connect with the specified port. If this fails, resolve the FQDN as AAAA or A and connect with the default port of 8080.

Possible variations:

  1. Not immediately sending a DNS request and/or having the user specify SRV themselves
  2. Other encodings of saving that the port should be retrieved via SRV and/or saving a fallback port
  3. a different SRV service name (developer choice)

Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions