I’m trying to access the private networking via a bash script based on the description over here: https://fly.io/docs/reference/services/#private-network-services.
My fly.toml includes:
[experimental]
private_network = "true"
My Dockerfile’s entrypoint runs a shell script that prints the private networking info:
echo "get host configs: "$(cat /etc/resolv.conf)
# this prints - "get host configs: nameserver fdaa::3" as expected.
echo "Names of 6PN private networking apps: "$(dig -t txt _apps.internal +short)
# this prints - "Names of 6PN private networking apps: ; <<>> DiG 9.11.20-RedHat-9.11.20-5.el8 <<>> -t txt _apps.internal +short ;; global options: +cmd ;; connection timed out; no servers could be reached"
echo "Deployed regions: "$(dig -t txt ${appname}.internal +short)
# this prints - "Deployed regions: ; <<>> DiG 9.11.20-RedHat-9.11.20-5.el8 <<>> -t txt ${appname}.internal +short ;; global options: +cmd ;; connection timed out; no servers could be reached"
echo "IPv6 address of app instances in any region: "$(getent hosts global.${appname}.internal | awk '{ print $1 }')
# this prints - "IPv6 address of app instances in any region:"
It seems there’s a connection time out and this shouldn’t be the expected behavior. I also read this response from @thomas explaining how private addresses are injected prior to the boot sequence: Incoming! Private Networks and WireGuard VPNs.
Also wondering, is there a way to troubleshoot by exec’ing into the app? I don’t any obvious mention of this in the docs.
I’ve also tried out the privatenet example repo - fly-examples/privatenet. And while it deploys successfully, the endpoint /
times out. I’m not sure if the two are related.