I’m trying to access the machine API from within an app or machine running on fly.io, but I’m having the issue that _api.internal is not known.
Isn’t it part of the internal DNS?
I’m trying to access the machine API from within an app or machine running on fly.io, but I’m having the issue that _api.internal is not known.
Isn’t it part of the internal DNS?
It should work, yes (and folks have reported it working before):
For a test Machine app I run, I see it work:
fly dig AAAA _api.internal -a <app-name>
;; opcode: QUERY, status: NOERROR, id: 35964
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; ANSWER SECTION:
_api.internal. 5 IN AAAA fdaa:0:<orgid>::3
Are you querying for AAAA
records? Some are TXT
records too (ref docs).
Ok, I must have done something wrong.
I started over, tried the fly dig
command and it is working as expected.
The first machine created from within another machine is already running
Thanks!