Ubuntu – Unable to resolve host error after a VPN session

Problem: Ubuntu unable to resolve hosts after a disrupted VPN session.

Reason: The DNS server not reset to normal from that of the VPN network.

Fix: On terminal, do –

  1. sudo vi /etc/resolv.conf
  2. Remove the “dns domain” and “dns server” lines from this file.
  3. Save and close the file.
  4. Restart browser or the app which needs to connect to internet.

Leave a Reply

Your email address will not be published. Required fields are marked *


* Copy This Password *

* Type Or Paste Password Here *

68,510 Spam Comments Blocked so far by Spam Free Wordpress

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>