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: