PostgreSQL private DNS hostname case sensitivity issue
hirowt
PROOP
5 months ago
Steps to reproduce:
- Create a new service on Railway
- Add PostgreSQL database using the "Database" dropdown
- Railway automatically creates the database with hostname Postgres.railway.internal (capital P)
- Link the database to the service
- 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
5 months 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 • 5 months ago
Railway
BOT
5 months 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
5 months ago
i still have same issue : postgres.railway.internal
