Monday, September 23, 2019

Permanent DNS setup on Ubuntu 18

  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.
    nameserver 8.8.4.4
    nameserver 8.8.8.8
  3. Restart the resolvconf service.
    sudo service resolvconf restart