Can't connect to postgres using internal network
congdv
HOBBYOP

5 months ago

anyone has any idea how to debug that my service can't connect to postgres using internal network (Postgres.railway.internal) but the service connects fine through public url of postgres.

I received this error when trying to connect through internal network

2026/02/06 03:54:54 db connect error: dial tcp: lookup Postgres.railway.internal on [fd12::10]:53: no such host
2026/02/06 03:54:55 db connect error: dial tcp: lookup Postgres.railway.internal on [fd12::10]:53: no such host
2026/02/06 03:54:57 db connect error: dial tcp: lookup Postgres.railway.internal on [fd12::10]:53: no such host
2026/02/06 03:55:06 db connect error: dial tcp: lookup Postgres.railway.internal on [fd12::10]:53: no such host
2026/02/06 03:55:08 db connect error: dial tcp: lookup Postgres.railway.internal on [fd12::10]:53: no such host

Any tips to debug this issue, my app was deployed through docker container. Do I need other configuration for connect through intern network.

Thank you

$10 Bounty

Pinned Solution

congdv
HOBBYOP

5 months ago

I think I found an issue about the Postgres why it is failing. It was DNS is case-sensitive in many cloud environments. When your app looks for Postgres.railway.internal (Uppercase).

To avoid that,you go to Postgres instance and change it to lower case postgres.railway.internal

Attachments

4 Replies

congdv
HOBBYOP

5 months ago

I think I found an issue about the Postgres why it is failing. It was DNS is case-sensitive in many cloud environments. When your app looks for Postgres.railway.internal (Uppercase).

To avoid that,you go to Postgres instance and change it to lower case postgres.railway.internal

Attachments


snugglepilot
PRO

5 months ago


Status changed to Open brody 5 months ago


Railway
BOT

5 months ago

Hello!

We're acknowledging your issue and attaching a ticket to this thread.

We don't have an ETA for it, but, our engineering team will take a look and you will be updated as we update the ticket.

Please reply to this thread if you have any questions!


Railway
BOT

5 months ago

✅ The ticket Private domain creation issue has been marked as completed.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...