Per the documentation, _instances.internal
’s TXT
record should contain
all addresses, apps, regions, and instances, comma separated
Interestingly, when doing a dig
from my workstation through a WG tunnel, I only get information about one of the 2 apps under the organization:
[andrei@fedora template]$ dig +short txt _instances.internal @fdaa:2:8fc2::3
"instance=5683d5ddf79008,app=nats-dev,ip=172.19.132.90,region=otp;
instance=e2865956fe2318,app=nats-dev,ip=172.19.128.74,region=otp;
instance=9080401a513187,app=nats-dev,ip=172.19.129.74,region=otp"
NOTE: List manually wrapped for readability.
Initially I thought this was because the other app had scaled to zero, but all apps are scaled to zero. It seems that the instance for notify-dev
is not showing up in this record.
My use-case is to leverage Fly’s DNS to perform autodiscovery for some cluster-level scale to zero / start on request.
I know that we’re already limited by the fact that most DNS entries contain no information after a machine is stopped, so my last hope was this TXT
entry out of which to extract instance IDs, then use the API to send them a start signal.
Is this a bug, or is it intended behaviour?