Hello Adrian Ciocirlan
I understand that you are facing issue with DNS resolution for your private PostgreSQL server while connected through your Point-to-Site VPN.
For further investigation please share the below information.
- Please try to share the nslookup screen shot.
- And in the meantime, please try to test PsPing and share the results with us.
- If possible, please share the topology diagram as well.
Additionally adding some more points:
Please let me know private endpoint and Source VM both are in same Vnet or different Vnet.
- And also let me know which DNS you are using the azure provided or Custom DNS.
- If you are using a custom DNS, you need to configure a forwarder pointing to the Azure DNS IP on the custom DNS server machine.
- Additionally, if the custom DNS is hosted in a different VNET, you need to add the custom DNS virtual network in the private DNS zone.
- If you are trying to connect from on-premises, you need to use a VPN. For connections inside Azure, you need a private DNS resolver.
- Additionally, you must configure a conditional forwarder pointing to the private DNS resolver's inbound IP in your local machine's DNS server.
Kindly check the below documents for more understanding:
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.