8 months ago
Project: Futurenostics Web
Environment: Develop Issue
Description: Unable to establish private network connectivity between NestJS backend and Redis services.
DNS resolution is failing for internal hostnames despite both services having private networking enabled.
Service Details:
1. Backend Service: -
Name: sales-management-backend
- Region: Southeast Asia (Singapore)
- Private Domain: sales-management-backend.railway.internal
- Status: Active and running
2. Redis Service: -
- Name: Redis-Sale-Management
- Private Domain: redis-sale-management.railway.internal
- Status: Active and running
-----> Current Behavior:-
- Getting consistent DNS resolution errors: "getaddrinfo ENOTFOUND redis-sale-management.railway.internal"
- Public endpoint works successfully (nozomi.proxy.rlwy.net:25429)
- Private networking shows as "Ready to talk privately" for both services
- Both services are in the same project and environment
Steps Attempted:
1. Used full internal DNS name: redis-sale-management.railway.internal
2. Used short service name: redis-sale-management
3. Verified both services have private networking enabled
4. Confirmed both services show as properly linked in the project architecture
Error Logs:
``` [Nest] 12 - 06/19/2025, 8:13:20 PM WARN [RedisService] Error stack: Error: getaddrinfo ENOTFOUND redis-sale-management.railway.internal at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) ```
Questions:
1. Are there any prerequisites for private networking that might be missing?
2. Is there a required delay for DNS propagation after enabling private networking?
3. Are there any additional configuration steps needed beyond enabling private networking in the service settings?
Current Workaround:
Currently using the public endpoint (nozomi.proxy.rlwy.net:25429) to maintain service operation. Any assistance in resolving this private networking issue would be greatly appreciated.
4 Replies
8 months ago
If you're using Redis, you need to tell Redis to use the ipv6 connection
Here's some more info https://docs.railway.com/reference/errors/enotfound-redis-railway-internal
Status changed to Awaiting User Response Railway • 8 months ago
8 months ago
Thanks for the IPv6 guidance. I've implemented the suggested changes but now facing a new issue:
1. Added family=0 as suggested
2. Now successfully resolving IPv6 address (fd12:5d38:6708:0:9000:30:a434:33da:6379)
3. But getting ENETUNREACH errors when trying to connect Full error: WARN [RedisService] Error code: ENETUNREACH WARN [RedisService] Error stack: Error: connect ENETUNREACH fd12:5d38:6708:0:9000:30:a434:33da:6379 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1611:16)
Both services are in the same project/environment and show as "Ready to talk privately". Any ideas why we can resolve but not connect to the IPv6 address?
Status changed to Awaiting Railway Response Railway • 8 months ago
8 months ago
Any updates?
8 months ago
Unfortunately I'm not sure. I've only used it with ipv6 and it's worked. I'll make this public and hopefully the community can help
Status changed to Awaiting User Response Railway • 8 months ago
8 months ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open jake • 8 months ago
