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.
Kj
Kj [/.] Sreekumar programs computers as a hobby and profession. Into programming from his school days, Sree uses Codemarvels to key in facts and fixes he finds interesting while working on different projects. Some of the articles here give away a few shades of his philosophical leanings too.

Leave a Comment

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