Mare Stare 😳
Mare Stare 😳
RRailway
Created by Mare Stare 😳 on 11/10/2023 in #βœ‹ο½œhelp
Private DNS resolution doesn't work
Hey I'm trying to deploy a test Rust axum, sqlx app that needs to connect to a Postgres instance. I'm using the DATABASE_PRIVATE_URL of the Postgres instance in the axum service. But my app can't connect to the instance with the DNS error:
Failed to connect to Postgres.: Io(Custom { kind: Uncategorized, error: "failed to lookup address information: Name does not resolve" })
Failed to connect to Postgres.: Io(Custom { kind: Uncategorized, error: "failed to lookup address information: Name does not resolve" })
I clearly see that the DB URL that it uses is of form postgres://postgres:[email protected]:5432/railway and that private network is enabled. What could be wrong here? Can I SSH to the server to debug this somehow?
12 replies