Phoenix unable to connect to postgres

Hey cool people!

Here is whats going on.

My phoenix application cannot connect to the postgres it gets the error,
non-existing domain

However, here is where it gets fun.
When I wireguard into the network. I can successfully nslookup the domain and even connect to it with the psql command.

When I created a new elixir phoenix project just to test. It also couldnt connect.

Any help is GREATLY appreciated :smiley:

1 Like

Having same issue

Hi… Usually this is IPv6, :dragon:

https://community.fly.io/t/nxdomain-for-elixir-app/6704/2

(If not, it would help if you could give a lot more details about your own actual setup, etc.)

figured out my issue was due to running my app on custom vpc and trying to connect to managed postgres which runs on the default network. silly mistake on my part.

1 Like