When I try to connect to an Openvpn client in ubuntu 19.04, it fails to resolve hostname if "Use this connection only for resources on its network" option is checked under IPV4 tab. This is confirmed as I can login to a remote server by typing the following command:
But it shows the following error when I type ssh username@hostname
ssh: Could not resolve hostname hpc.iitd.ac.in: Name or service not known
Normal internet works fine under this situation.
However, when I deselect this option I am able to login to the remote server using hostname but internet websites do not open. I could solve this by using the proxy settings for accessing internet from my institute LAN. But I believe "Use this connection only for resources on its network" should work as intended. I am using Ubuntu 19.04.
Please help me out. Thank you in advance.