[Feature Request]: Configurable private DNS SRV records

My feature request is to have configurable SRV records available in the private DNS for easier discoverability with tools/servers that support SRV lookup out-of-the-box.

My proposal is to add a new section to the fly.toml file, e.g.

app = 'kserver'

[private_dns]
  [[srv_records]]
    name = 'kerberos'
    protocol = 'tcp'
    port = 88

  [[srv_records]]
    name = 'kerberos'
    protocol = 'udp'
    port = 88

....

This would result in dns records available like so:

# fly dig SRV _kerberos._tcp.kserver.internal
.....

;; ANSWER SECTION:
_kerberos._tcp.kserver.internal. 5 IN SRV 0       100     88 a2354564.vm.kserver.internal.
_kerberos._tcp.kserver.internal. 5 IN SRV 0       100     88 c9dd70d5.vm.kserver.internal.
_kerberos._tcp.kserver.internal. 5 IN SRV 0       100     88 f4580b73.vm.kserver.internal.
2 Likes