DNS on Ubuntu

  1. Install the resolvconf package.

    sudo apt install resolvconf

  2. Edit /etc/resolvconf/resolv.conf.d/head and add the following:

# Make edits to /etc/resolvconf/resolv.conf.d/head.
  1. Restart the resolvconf service.
sudo service resolvconf restart

Fix should be permanent.

Want to make this site better? Open a PR or help fund hosting costs