Trying to setup Ruby on Rails with Neon, but keep getting name resolution error

I’ve changed the config.yml a couple of times.

I’m currently setting the database url to: postgres://<user>:<password>@<instance>.us-west-2.aws.neon.tech

The latest error I got was:

ActiveRecord::ConnectionNotEstablished: could not translate host name "<instance>.us-west-2.aws.neon.tech" to address: Temporary failure in name resolution

Can you ping, dig or nslookup the FQDN?

eg.

dig +short ep-winter-boat-000000.us-east-2.aws.neon.tech
3.23.186.13
3.143.47.40
3.131.64.200

If you cannot resolve the DNS for the endpoint, there may be a problem with the instance.

I just noticed it’s a name-resolution problem in the docker container.

Thank you for your reply.