PostgreSQL private DNS hostname case sensitivity issue
hirowt
PROOP

a month ago

Steps to reproduce:

  1. Create a new service on Railway

  1. Add PostgreSQL database using the "Database" dropdown

  1. Railway automatically creates the database with hostname Postgres.railway.internal (capital P)

  1. Link the database to the service

  1. Application fails with UnknownHostException: Postgres.railway.internal

Expected behavior:

  • DNS should resolve Postgres.railway.internal (as displayed in Railway UI)

  • Or Railway should provide the hostname in lowercase to match DNS resolution

Actual behavior:

  • Railway displays hostname as Postgres.railway.internal (capital P) in the service settings

  • DNS only resolves postgres.railway.internal (lowercase p)

  • Applications fail to connect using the hostname Railway provides

    I ended up fixing this by changing the host name of the DB to lowercase P postgres.railway.internal. Is this a known bug or an applicaiton problem?

2 Replies

Railway
BOT

a month ago

Hello!

We've escalated your issue to our engineering team.

We aim to provide an update within 1 business day.

Please reply to this thread if you have any questions!

Status changed to Awaiting User Response Railway 30 days ago


Railway
BOT

a month ago

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


Railway

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

taghi-yassin-official
HOBBY

a month ago

i still have same issue : postgres.railway.internal


Loading...