How to prevent Juniper Network Connect breaking DNS resolutions

First: clicking the Sign Out button in the Network Connect window (the window that shows the VPN IP while connected) and

Then clicking on the Sign Out button in the logged-in web page avoids this problem.

Please indicate in comment if this works or not.

Thanks


The best way to fix the /etc/resolv.conf symlink is to run

sudo dpkg-reconfigure resolvconf

and answer YES to prepare resolv.conf for dynamic updates.


I would expect that you do not need to reinstall the package. Just restarting resolvconf should fix the problem:

sudo service resolvconf restart

If that does not happen to work, in addition you can try restarting the network service which will try to write a new set of values to /etc/resolv.conf

sudo service network restart

After Network Connect has been stopped it suffices to do the following.

sudo ln -s ../run/resolvconf/resolv.conf /etc/resolv.conf
sudo resolvconf -u  # Regenerate /run/resolvconf/resolv.conf

You don't need to back up /run/resolvconf/resolv.conf beforehand.